diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-02-20 17:28:50 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-02-20 17:28:50 +0000 |
commit | a9847c36e6aa003998c1ef5518e5710658ca5770 (patch) | |
tree | 447433d13af676e0600c4fdc2d58a7b0bbbe04d0 /pkgs/development/python-modules | |
parent | 515d3cfa24df96c9e134ac5b87c2396f81354551 (diff) | |
parent | d57c05acd165ba8a428b13457c87d24175f58136 (diff) | |
download | nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.tar nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.tar.gz nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.tar.bz2 nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.tar.lz nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.tar.xz nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.tar.zst nixpkgs-a9847c36e6aa003998c1ef5518e5710658ca5770.zip |
Merge remote-tracking branch 'nixpkgs/master' into master
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/can/default.nix | 7 | ||||
-rw-r--r-- | pkgs/development/python-modules/mps-youtube/default.nix | 35 | ||||
-rw-r--r-- | pkgs/development/python-modules/scs/default.nix | 56 |
3 files changed, 57 insertions, 41 deletions
diff --git a/pkgs/development/python-modules/can/default.nix b/pkgs/development/python-modules/can/default.nix index b9d2b4b7751..8aa80a75067 100644 --- a/pkgs/development/python-modules/can/default.nix +++ b/pkgs/development/python-modules/can/default.nix @@ -24,12 +24,7 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ wrapt pyserial aenum ] ++ lib.optional (pythonOlder "3.5") typing; - checkInputs = [ nose mock pytest pytest-timeout hypothesis future ]; - - # Tests won't work with hypothesis 4.7.3 under Python 2. So skip the tests in - # that case. This clause can be removed once hypothesis has been upgraded in - # nixpkgs. - doCheck = !(isPy27 && (hypothesis.version == "4.7.3")); + checkInputs = [ nose mock pytest hypothesis future ]; # Add the scripts to PATH checkPhase = '' diff --git a/pkgs/development/python-modules/mps-youtube/default.nix b/pkgs/development/python-modules/mps-youtube/default.nix deleted file mode 100644 index 753a0d24d0a..00000000000 --- a/pkgs/development/python-modules/mps-youtube/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k -, pafy -}: - -buildPythonPackage rec { - pname = "mps-youtube"; - version = "0.2.8"; - disabled = (!isPy3k); - - src = fetchFromGitHub { - owner = "mps-youtube"; - repo = "mps-youtube"; - rev = "v${version}"; - sha256 = "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y"; - }; - - propagatedBuildInputs = [ pafy ]; - - # disabled due to error in loading unittest - # don't know how to make test from: <mps_youtube. ...> - doCheck = false; - - # before check create a directory and redirect XDG_CONFIG_HOME to it - preCheck = '' - mkdir -p check-phase - export XDG_CONFIG_HOME=$(pwd)/check-phase - ''; - - meta = with lib; { - description = "Terminal based YouTube player and downloader"; - homepage = "https://github.com/mps-youtube/mps-youtube"; - license = licenses.gpl3; - maintainers = with maintainers; [ odi ]; - }; -} diff --git a/pkgs/development/python-modules/scs/default.nix b/pkgs/development/python-modules/scs/default.nix new file mode 100644 index 00000000000..4e500d68535 --- /dev/null +++ b/pkgs/development/python-modules/scs/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, blas +, liblapack +, numpy +, scipy +, scs + # check inputs +, nose +}: + +buildPythonPackage rec { + inherit (scs) pname version; + + src = fetchFromGitHub { + owner = "bodono"; + repo = "scs-python"; + rev = "f02abdc0e2e0a5851464e30f6766ccdbb19d73f0"; # need to choose commit manually, untagged + sha256 = "174b5s7cwgrn1m55jlrszdl403zhpzc4yl9acs6kjv9slmg1mmjr"; + }; + + preConfigure = '' + rm -r scs + ln -s ${scs.src} scs + ''; + + buildInputs = [ + liblapack + blas + ]; + + propagatedBuildInputs = [ + numpy + scipy + ]; + + checkInputs = [ nose ]; + checkPhase = '' + nosetests + ''; + pythonImportsCheck = [ "scs" ]; + + meta = with lib; { + description = "Python interface for SCS: Splitting Conic Solver"; + longDescription = '' + Solves convex cone programs via operator splitting. + Can solve: linear programs (LPs), second-order cone programs (SOCPs), semidefinite programs (SDPs), + exponential cone programs (ECPs), and power cone programs (PCPs), or problems with any combination of those cones. + ''; + homepage = "https://github.com/cvxgrp/scs"; # upstream C package + downloadPage = "https://github.com/bodono/scs-python"; + license = licenses.gpl3; + maintainers = with maintainers; [ drewrisinger ]; + }; +} |