1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 click,
6 twisted,
7}:
8
9let
10 incremental = buildPythonPackage rec {
11 pname = "incremental";
12 version = "22.10.0";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-kS/uteD34BiOb0IkHS9FAALhG7wJN8ZYZQRYVMJMC9A=";
18 };
19
20 propagatedBuildInputs = [ click ];
21
22 # escape infinite recursion with twisted
23 doCheck = false;
24
25 nativeCheckInputs = [ twisted ];
26
27 checkPhase = ''
28 trial incremental
29 '';
30
31 passthru.tests = {
32 check = incremental.overridePythonAttrs (_: {
33 doCheck = true;
34 });
35 };
36
37 pythonImportsCheck = [ "incremental" ];
38
39 meta = with lib; {
40 homepage = "https://github.com/twisted/incremental";
41 description = "Incremental is a small library that versions your Python projects";
42 license = licenses.mit;
43 maintainers = with maintainers; [ ];
44 };
45 };
46in
47incremental