nixpkgs/pkgs/development/tools/pur/default.nix

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

34 lines
724 B
Nix
Raw Normal View History

2021-04-17 20:53:19 +00:00
{ lib
, python3
2021-04-17 20:53:19 +00:00
, fetchFromGitHub
}:
2022-04-22 22:17:38 +00:00
python3.pkgs.buildPythonApplication rec {
2021-04-17 20:53:19 +00:00
pname = "pur";
2022-05-11 00:16:43 +00:00
version = "7.0.0";
2021-04-17 20:53:19 +00:00
src = fetchFromGitHub {
owner = "alanhamlett";
repo = "pip-update-requirements";
2022-05-11 00:16:43 +00:00
rev = "refs/tags/${version}";
hash = "sha256-JAjz9A9r1H6MJX7MSq7UvQKfULhB9UuPP3tI6Cggx9I=";
2021-04-17 20:53:19 +00:00
};
propagatedBuildInputs = [
2022-04-22 22:17:38 +00:00
python3.pkgs.click
2021-04-17 20:53:19 +00:00
];
checkInputs = [
2022-04-22 22:17:38 +00:00
python3.pkgs.pytestCheckHook
2021-04-17 20:53:19 +00:00
];
pythonImportsCheck = [ "pur" ];
meta = with lib; {
description = "Python library for update and track the requirements";
homepage = "https://github.com/alanhamlett/pip-update-requirements";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}