2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
tomli,
|
2024-06-05 15:53:02 +00:00
|
|
|
twisted,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
let
|
|
|
|
incremental = buildPythonPackage rec {
|
|
|
|
pname = "incremental";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "24.7.2";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twisted";
|
|
|
|
repo = "incremental";
|
|
|
|
rev = "refs/tags/incremental-${version}";
|
|
|
|
hash = "sha256-5MlIKUaBUwLTet23Rjd2Opf5e54LcHuZDowcGon0lOE=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# From upstream's pyproject.toml:
|
|
|
|
# "Keep this aligned with the project dependencies."
|
|
|
|
build-system = dependencies;
|
|
|
|
|
|
|
|
dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
|
|
|
|
|
|
optional-dependencies = {
|
|
|
|
scripts = [ click ];
|
|
|
|
};
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# escape infinite recursion with twisted
|
|
|
|
doCheck = false;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ twisted ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkPhase = ''
|
|
|
|
trial incremental
|
|
|
|
'';
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru.tests = {
|
|
|
|
check = incremental.overridePythonAttrs (_: {
|
|
|
|
doCheck = true;
|
|
|
|
});
|
|
|
|
};
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "incremental" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/twisted/incremental/blob/${src.rev}/NEWS.rst";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/twisted/incremental";
|
2024-09-19 14:19:46 +00:00
|
|
|
description = "Small library that versions your Python projects";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
incremental
|