9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
49 lines
902 B
Nix
49 lines
902 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, toml
|
|
, pyyaml
|
|
, packaging
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dparse";
|
|
version = "0.6.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-J7uLS8rv7DmXaXuj9uBrJEcgC6JzwLCFw9ASoEVxtSg=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/pyupio/dparse/blob/${version}/HISTORY.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ thomasdesr ];
|
|
};
|
|
}
|