nixpkgs/pkgs/development/python-modules/dparse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
902 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, toml
, pyyaml
, packaging
, pytestCheckHook
}:
2020-05-04 15:56:41 +00:00
buildPythonPackage rec {
pname = "dparse";
version = "0.6.3";
format = "setuptools";
disabled = pythonOlder "3.6";
2020-05-04 15:56:41 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-J7uLS8rv7DmXaXuj9uBrJEcgC6JzwLCFw9ASoEVxtSg=";
2020-05-04 15:56:41 +00:00
};
propagatedBuildInputs = [
toml
pyyaml
packaging
];
2020-05-04 15:56:41 +00:00
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dparse"
];
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";
homepage = "https://github.com/pyupio/dparse";
changelog = "https://github.com/pyupio/dparse/blob/${version}/HISTORY.rst";
2020-05-04 15:56:41 +00:00
license = licenses.mit;
maintainers = with maintainers; [ thomasdesr ];
};
}