2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-12-28 21:21:41 +00:00
|
|
|
, fetchFromGitHub
|
2021-08-22 07:53:02 +00:00
|
|
|
, pythonOlder
|
2022-12-28 21:21:41 +00:00
|
|
|
, setuptools
|
|
|
|
, tomli
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "versioneer";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.28";
|
|
|
|
format = "pyproject";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-versioneer";
|
|
|
|
repo = "python-versioneer";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Jy0c1I3kLgJAeGWzcgl5qVAWesf4EXaMIOW03B+1yWE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
|
|
|
# Couldn't get tests to work because, for instance, they used virtualenv and pip
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"versioneer"
|
|
|
|
];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Version-string management for VCS-controlled trees";
|
|
|
|
homepage = "https://github.com/warner/python-versioneer";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/python-versioneer/python-versioneer/blob/${version}/NEWS.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|