2021-04-22 00:32:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, toml
|
|
|
|
, pyyaml
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-05-04 15:56:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dparse";
|
|
|
|
version = "0.5.1";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "a1b5f169102e1c894f9a7d5ccf6f9402a836a5d24be80a986c7ce9eaed78f367";
|
|
|
|
};
|
|
|
|
|
2021-04-22 00:32:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
toml
|
|
|
|
pyyaml
|
|
|
|
packaging
|
|
|
|
];
|
2020-05-04 15:56:41 +00:00
|
|
|
|
2021-04-22 00:32:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires unpackaged dependency pipenv
|
|
|
|
"test_update_pipfile"
|
|
|
|
];
|
2020-05-04 15:56:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A parser for Python dependency files";
|
2021-04-22 00:32:57 +00:00
|
|
|
homepage = "https://github.com/pyupio/dparse";
|
2020-05-04 15:56:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ thomasdesr ];
|
|
|
|
};
|
|
|
|
}
|