python3Packages.pythonfinder: init at 1.2.9
This commit is contained in:
parent
4818f809a9
commit
11c1844e84
60
pkgs/development/python-modules/pythonfinder/default.nix
Normal file
60
pkgs/development/python-modules/pythonfinder/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, attrs
|
||||
, cached-property
|
||||
, click
|
||||
, six
|
||||
, packaging
|
||||
, backports_functools_lru_cache
|
||||
, pathlib2
|
||||
, pytest-cov
|
||||
, pytest-timeout
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pythonfinder";
|
||||
version = "1.2.9";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sarugaku";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-tPMqVKbYwBRvb8/GyYNxO8lwJLcUUQyRoCoF5tg6rxs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
cached-property
|
||||
click
|
||||
six
|
||||
packaging
|
||||
]
|
||||
++ lib.optionals (pythonOlder "3.5") [ pathlib2 ]
|
||||
++ lib.optionals (pythonOlder "3") [ backports_functools_lru_cache ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-cov
|
||||
pytest-timeout
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "--no-cov" ];
|
||||
|
||||
# these tests invoke git in a subprocess and
|
||||
# for some reason git can't be found even if included in checkInputs
|
||||
disabledTests = [
|
||||
"test_shims_are_kept"
|
||||
"test_shims_are_removed"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/sarugaku/pythonfinder";
|
||||
description = "Cross Platform Search Tool for Finding Pythons";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cpcloud ];
|
||||
};
|
||||
}
|
|
@ -6102,6 +6102,8 @@ in {
|
|||
|
||||
python-tado = callPackage ../development/python-modules/python-tado { };
|
||||
|
||||
pythonfinder = callPackage ../development/python-modules/pythonfinder { };
|
||||
|
||||
pyutil = callPackage ../development/python-modules/pyutil { };
|
||||
|
||||
pkutils = callPackage ../development/python-modules/pkutils { };
|
||||
|
|
Loading…
Reference in a new issue