2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bitarray";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.8.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-zWmpJqM2PiXpSmRAgwMoPFkIW+ltcVJL2+a/yNouNOA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
checkPhase = ''
|
|
|
|
cd $out
|
|
|
|
${python.interpreter} -c 'import bitarray; bitarray.test()'
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bitarray"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient arrays of booleans";
|
|
|
|
homepage = "https://github.com/ilanschnell/bitarray";
|
2022-05-18 14:49:53 +00:00
|
|
|
changelog = "https://github.com/ilanschnell/bitarray/raw/${version}/CHANGE_LOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.psfl;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|