1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "pur";
8 version = "7.3.2";
9 pyproject = true;
10
11 src = fetchFromGitHub {
12 owner = "alanhamlett";
13 repo = "pip-update-requirements";
14 rev = "refs/tags/${version}";
15 hash = "sha256-XLI9U9ej3+tS0zzmCDGwZ0pAb3mKnrqBtm90f5N6rMw=";
16 };
17
18 build-system = with python3.pkgs; [
19 setuptools
20 ];
21
22 dependencies = with python3.pkgs; [
23 click
24 ];
25
26 nativeCheckInputs = with python3.pkgs; [
27 pytestCheckHook
28 ];
29
30 pythonImportsCheck = [
31 "pur"
32 ];
33
34 meta = with lib; {
35 description = "Python library for update and track the requirements";
36 homepage = "https://github.com/alanhamlett/pip-update-requirements";
37 changelog = "https://github.com/alanhamlett/pip-update-requirements/blob/${version}/HISTORY.rst";
38 license = licenses.bsd2;
39 maintainers = with maintainers; [ fab ];
40 mainProgram = "pur";
41 };
42}