2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-09-22 12:36:57 +00:00
|
|
|
, pythonOlder
|
2021-04-25 03:57:28 +00:00
|
|
|
, toml
|
|
|
|
, pyyaml
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dparse";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "0.6.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-1FJVvaIfmYvH3fKv1eYlBbphNHVrotQqhMVrCCZhTf4=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
toml
|
|
|
|
pyyaml
|
|
|
|
packaging
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dparse"
|
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires unpackaged dependency pipenv
|
|
|
|
"test_update_pipfile"
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A parser for Python dependency files";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/pyupio/dparse";
|
2020-05-15 21:57:56 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ thomasdesr ];
|
|
|
|
};
|
|
|
|
}
|