1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch2,
6 poetry-core,
7 pytestCheckHook,
8}:
9buildPythonPackage rec {
10 pname = "bitvector-for-humans";
11 version = "0.14.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "JnyJny";
16 repo = "bitvector";
17 rev = version;
18 hash = "sha256-GVTRD83tq/Hea53US4drOD5ruoYCLTVd24aZOSdDsSo=";
19 };
20
21 patches = [
22 (fetchpatch2 {
23 # https://github.com/JnyJny/bitvector/pull/1
24 name = "fix-poetry-core.patch";
25 url = "https://github.com/JnyJny/bitvector/commit/e5777f2425895ed854e54bed2ed9d993f6feaf2f.patch";
26 hash = "sha256-BG3IpDMys88RtkPOd58CWpRWKKzbNe5kV+64hWjtecE=";
27 })
28 ];
29
30 build-system = [ poetry-core ];
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "bitvector" ];
34
35 meta = with lib; {
36 homepage = "https://github.com/JnyJny/bitvector";
37 description = "This simple bit vector implementation aims to make addressing single bits a little less fiddly";
38 license = licenses.asl20;
39 teams = [ teams.helsinki-systems ];
40 };
41}