Files
nixpkgs/pkgs/development/python-modules/bitvector-for-humans/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
homepage = "https://github.com/JnyJny/bitvector";
description = "This simple bit vector implementation aims to make addressing single bits a little less fiddly";
license = lib.licenses.asl20;
teams = [ lib.teams.helsinki-systems ];
};
}