44 lines
889 B
Nix
44 lines
889 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, click
|
|
, twisted
|
|
}:
|
|
|
|
let incremental = buildPythonPackage rec {
|
|
pname = "incremental";
|
|
version = "21.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
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/incremental";
|
|
description = "Incremental is a small library that versions your Python projects";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}; in incremental
|