summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bitvector-for-humans/default.nix
blob: 725fd141fa4f1578c018f4790c3e2c3c7c9de964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  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;
    maintainers = with lib.maintainers; [
      das_j
      helsinki-Jo
    ];
  };
}