python310Packages.incremental: adopt, add tests, fix dependencies

This commit is contained in:
Sandro Jäckel
2022-05-15 23:36:43 +02:00
parent ea69f79829
commit 304eb995a7
@@ -1,6 +1,11 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, fetchPypi
, click
, twisted
}:
buildPythonPackage rec {
let incremental = buildPythonPackage rec {
pname = "incremental";
version = "21.3.0";
@@ -9,10 +14,31 @@ buildPythonPackage rec {
sha256 = "02f5de5aff48f6b9f665d99d48bfc7ec03b6e3943210de7cfc88856d755d6f57";
};
propagatedBuildInputs = [
click
];
# escape infinite recursion with twisted
doCheck = false;
checkInputs = [
twisted
];
checkPhase = ''
trial incremental
'';
passthru.tests = {
check = incremental.overridePythonAttrs (_: { doCheck = true; });
};
pythonImportsCheck = [ "incremental" ];
meta = with lib; {
homepage = "https://github.com/twisted/treq";
homepage = "https://github.com/twisted/incremental";
description = "Incremental is a small library that versions your Python projects";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
}; in incremental