Files
nixpkgs/pkgs/development/python-modules/bitvector-for-humans/default.nix
T
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

42 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bitvector-for-humans";
version = "0.14.1";
pyproject = true;
src = fetchFromGitHub {
owner = "JnyJny";
repo = "bitvector";
rev = version;
hash = "sha256-GVTRD83tq/Hea53US4drOD5ruoYCLTVd24aZOSdDsSo=";
};
patches = [
(fetchpatch2 {
# https://github.com/JnyJny/bitvector/pull/1
name = "fix-poetry-core.patch";
url = "https://github.com/JnyJny/bitvector/commit/e5777f2425895ed854e54bed2ed9d993f6feaf2f.patch";
hash = "sha256-BG3IpDMys88RtkPOd58CWpRWKKzbNe5kV+64hWjtecE=";
})
];
build-system = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bitvector" ];
meta = with lib; {
homepage = "https://github.com/JnyJny/bitvector";
description = "This simple bit vector implementation aims to make addressing single bits a little less fiddly.";
license = licenses.asl20;
maintainers = teams.helsinki-systems.members;
};
}