diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2019-03-01 19:01:51 +0200 |
---|---|---|
committer | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2019-03-02 09:58:04 +0200 |
commit | 0a41afaecd341f1ed6692466e3f51571acb686b6 (patch) | |
tree | 1464796bf06c351013208d9a37dea5aac4c84be7 /pkgs/development/python-modules/can | |
parent | e81595e88988432df62740413339873f7a43c887 (diff) | |
download | nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.tar nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.tar.gz nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.tar.bz2 nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.tar.lz nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.tar.xz nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.tar.zst nixpkgs-0a41afaecd341f1ed6692466e3f51571acb686b6.zip |
pythonPackages.can: 3.0.0 -> 3.1.0
Diffstat (limited to 'pkgs/development/python-modules/can')
-rw-r--r-- | pkgs/development/python-modules/can/default.nix | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/can/default.nix b/pkgs/development/python-modules/can/default.nix index dadd55ab040..8e6c9044121 100644 --- a/pkgs/development/python-modules/can/default.nix +++ b/pkgs/development/python-modules/can/default.nix @@ -1,29 +1,37 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, pythonOlder , wrapt +, typing , pyserial , nose , mock +, hypothesis +, future , pytest , pytest-timeout }: buildPythonPackage rec { pname = "python-can"; - version = "3.0.0"; + version = "3.1.0"; - src = fetchPypi { - inherit pname version; - sha256 = "0d2ddb3b663af51b11a4c7fb7a577c63302a831986239f82bb6af65efc065b07"; + # PyPI tarball is missing some tests and is missing __init__.py in test + # directory causing the tests to fail. See: + # https://github.com/hardbyte/python-can/issues/518 + src = fetchFromGitHub { + repo = pname; + owner = "hardbyte"; + rev = "v${version}"; + sha256 = "01lfsh7drm4qvv909x9i0vnhskdh27mcb5xa86sv9m3zfpq8cjis"; }; - propagatedBuildInputs = [ wrapt pyserial ]; - checkInputs = [ nose mock pytest pytest-timeout ]; + propagatedBuildInputs = [ wrapt pyserial ] ++ lib.optional (pythonOlder "3.5") typing; + checkInputs = [ nose mock pytest pytest-timeout hypothesis future ]; + # Add the scripts to PATH checkPhase = '' - pytest -k "not test_writer_and_reader \ - and not test_reader \ - and not test_socketcan_on_ci_server" + PATH=$out/bin:$PATH pytest -c /dev/null ''; meta = with lib; { |