2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "versioneer";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.22";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-10 19:12:11 +00:00
|
|
|
hash = "sha256-nw6aLLXvUhy/0QTUOiCN2RJN+0rM+nLWlODQQwoBQrw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Couldn't get tests to work because, for instance, they used virtualenv and
|
|
|
|
# pip.
|
|
|
|
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";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|