depot/third_party/nixpkgs/pkgs/development/python-modules/dparse/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

48 lines
816 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
];
checkInputs = [
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 ];
};
}