mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
822 B
Nix
49 lines
822 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, toml
|
|
, pyyaml
|
|
, packaging
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dparse";
|
|
version = "0.6.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-1FJVvaIfmYvH3fKv1eYlBbphNHVrotQqhMVrCCZhTf4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
toml
|
|
pyyaml
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dparse"
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires unpackaged dependency pipenv
|
|
"test_update_pipfile"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A parser for Python dependency files";
|
|
homepage = "https://github.com/pyupio/dparse";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ thomasdesr ];
|
|
};
|
|
}
|