nixpkgs/pkgs/development/python-modules/versioneer/default.nix
Andreas Stührk 100f28fe32 python311Packages.versioneer: Fix hash
It looks like upstream updated the GitHub release. Diff between the
source from cache and the GitHub release:

--- source-in-cache/_version.py
+++ /nix/store/7z2m4szfp863y9bp1vsffflk22dyw1ci-source/_version.py
@@ -26,7 +26,7 @@
     # setup.py/versioneer.py will grep for the variable names, so they must
     # each be defined on a line of their own. _version.py will just call
     # get_keywords().
-    git_refnames = " (HEAD -> master, tag: 0.29)"
+    git_refnames = " (tag: 0.29)"
     git_full = "28c613dbef5fce09dc3ba6b1baa811c2d76b2245"
     git_date = "2023-07-07 10:50:03 -0400"
     keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
2023-11-15 08:34:41 +01:00

50 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, tomli
}:
buildPythonPackage rec {
pname = "versioneer";
version = "0.29";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-versioneer";
repo = "python-versioneer";
rev = "refs/tags/${version}";
hash = "sha256-3b7Wfhd24Vym5XCeN/M1832Q1VzvlWi3quTRaZrID2s=";
};
nativeBuildInputs = [
setuptools
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
passthru.optional-dependencies = {
toml = lib.optionals (pythonOlder "3.11") [
tomli
];
};
# Couldn't get tests to work because, for instance, they used virtualenv and pip
doCheck = false;
pythonImportsCheck = [
"versioneer"
];
meta = with lib; {
description = "Version-string management for VCS-controlled trees";
homepage = "https://github.com/python-versioneer/python-versioneer";
changelog = "https://github.com/python-versioneer/python-versioneer/blob/${version}/NEWS.md";
license = licenses.publicDomain;
maintainers = with maintainers; [ jluttine ];
};
}