mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python3Packages.sortedcollections: use GitHub as source and enable tests
python3Packages.sortedcollections: enable tests python3Packages.sortedcollections: add pythonImportsCheck
This commit is contained in:
parent
09010da567
commit
4a91e76fae
1 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
, sortedcontainers
|
, sortedcontainers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -8,15 +9,18 @@ buildPythonPackage rec {
|
||||||
pname = "sortedcollections";
|
pname = "sortedcollections";
|
||||||
version = "1.2.3";
|
version = "1.2.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "grantjenks";
|
||||||
sha256 = "0i9cvwz4gikkp5jmk0bzsbyisnwy4sfazm9bg7b8q9j266plr4rl";
|
repo = "python-sortedcollections";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "06ifkbhkj5fpsafibw0fs7b778g7q0gd03crvbjk04k0f3wjxc5z";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ sortedcontainers ];
|
propagatedBuildInputs = [ sortedcontainers ];
|
||||||
|
|
||||||
# No tests in PyPi tarball
|
checkInputs = [ pytestCheckHook ];
|
||||||
doCheck = false;
|
|
||||||
|
pythonImportsCheck = [ "sortedcollections" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Python Sorted Collections";
|
description = "Python Sorted Collections";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue