1{ lib, buildPythonPackage, fetchPypi, python }:
2
3buildPythonPackage rec {
4 pname = "bitarray";
5 version = "2.0.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "sha256-7DpPbXEaee0jrqlUFjjTNT3D8IPyk6ExgLFLSC4+Ge8=";
10 };
11
12 checkPhase = ''
13 cd $out
14 ${python.interpreter} -c 'import bitarray; bitarray.test()'
15 '';
16
17 pythonImportsCheck = [ "bitarray" ];
18
19 meta = with lib; {
20 description = "Efficient arrays of booleans";
21 homepage = "https://github.com/ilanschnell/bitarray";
22 changelog = "https://github.com/ilanschnell/bitarray/blob/master/CHANGE_LOG";
23 license = licenses.psfl;
24 maintainers = [ maintainers.bhipple ];
25 };
26}