1{ lib
2, fetchPypi
3, buildPythonPackage
4, six
5, nose
6}:
7buildPythonPackage rec {
8 pname = "intbitset";
9 version = "2.4.1";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "44bca80b8cc702d5a56f0686f2bb5e028ab4d0c2c1761941589d46b7fa2c701c";
14 };
15
16 patches = [
17 # fixes compilation on aarch64 and determinism (uses -march=core2 and
18 # -mtune=native)
19 ./remove-impure-tuning.patch
20 ];
21
22 propagatedBuildInputs = [
23 six
24 ];
25
26 checkInputs = [
27 nose
28 ];
29
30 checkPhase = ''
31 nosetests
32 '';
33
34 pythonImportsCheck = [
35 "intbitset"
36 ];
37
38 meta = with lib; {
39 description = "C-based extension implementing fast integer bit sets";
40 homepage = "https://github.com/inveniosoftware/intbitset";
41 license = licenses.lgpl3Only;
42 maintainers = teams.determinatesystems.members;
43 };
44}