4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
36 lines
758 B
Nix
36 lines
758 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bitarray";
|
|
version = "2.7.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-9xJWoyYJsDatrZMuEii2amtOLK5r45fliN3Aur2aeLk=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
cd $out
|
|
${python.interpreter} -c 'import bitarray; bitarray.test()'
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"bitarray"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Efficient arrays of booleans";
|
|
homepage = "https://github.com/ilanschnell/bitarray";
|
|
changelog = "https://github.com/ilanschnell/bitarray/raw/${version}/CHANGE_LOG";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
};
|
|
}
|