diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-06 09:39:25 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-10 15:41:06 +0100 |
commit | 4a91e76faebdbe6c8fa523b7206d2c9adc50179d (patch) | |
tree | dfd37814c946a7e92e6c396c3fe23fd46445da67 /pkgs/development/python-modules/sortedcollections | |
parent | 09010da567ca97926c295ac819c8d0430cbb6283 (diff) |
python3Packages.sortedcollections: use GitHub as source and enable tests
python3Packages.sortedcollections: enable tests python3Packages.sortedcollections: add pythonImportsCheck
Diffstat (limited to 'pkgs/development/python-modules/sortedcollections')
-rw-r--r-- | pkgs/development/python-modules/sortedcollections/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/sortedcollections/default.nix b/pkgs/development/python-modules/sortedcollections/default.nix index 31d365305e60d..7b861f7bdfc22 100644 --- a/pkgs/development/python-modules/sortedcollections/default.nix +++ b/pkgs/development/python-modules/sortedcollections/default.nix @@ -1,6 +1,7 @@ { stdenv , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, pytestCheckHook , sortedcontainers }: @@ -8,15 +9,18 @@ buildPythonPackage rec { pname = "sortedcollections"; version = "1.2.3"; - src = fetchPypi { - inherit pname version; - sha256 = "0i9cvwz4gikkp5jmk0bzsbyisnwy4sfazm9bg7b8q9j266plr4rl"; + src = fetchFromGitHub { + owner = "grantjenks"; + repo = "python-sortedcollections"; + rev = "v${version}"; + sha256 = "06ifkbhkj5fpsafibw0fs7b778g7q0gd03crvbjk04k0f3wjxc5z"; }; propagatedBuildInputs = [ sortedcontainers ]; - # No tests in PyPi tarball - doCheck = false; + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "sortedcollections" ]; meta = with stdenv.lib; { description = "Python Sorted Collections"; |