1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "bitarray";
12 version = "3.6.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-IP68hJofhY5qV6fUezI/6ecnxXnd1SbTF62IMXSKZqg=";
20 };
21
22 build-system = [ setuptools ];
23
24 checkPhase = ''
25 cd $out
26 ${python.interpreter} -c 'import bitarray; bitarray.test()'
27 '';
28
29 pythonImportsCheck = [ "bitarray" ];
30
31 meta = with lib; {
32 description = "Efficient arrays of booleans";
33 homepage = "https://github.com/ilanschnell/bitarray";
34 changelog = "https://github.com/ilanschnell/bitarray/raw/${version}/CHANGE_LOG";
35 license = licenses.psfl;
36 maintainers = with maintainers; [ bhipple ];
37 };
38}