2021-06-25 13:13:17 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
python,
|
2022-05-15 20:15:07 +02:00
|
|
|
pythonOlder,
|
2021-06-25 13:13:17 +02:00
|
|
|
}:
|
2018-10-22 17:13:46 -04:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bitarray";
|
2024-03-08 02:39:20 +01:00
|
|
|
version = "2.9.2";
|
2022-05-15 20:15:07 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-22 17:13:46 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-03-08 02:39:20 +01:00
|
|
|
hash = "sha256-qPKGpRoyMjcV13dV7ZWflL7xOXLpov5xtgnkDm0nlX4=";
|
2018-10-22 17:13:46 -04:00
|
|
|
};
|
|
|
|
|
2021-04-23 12:03:52 +02:00
|
|
|
checkPhase = ''
|
|
|
|
cd $out
|
|
|
|
${python.interpreter} -c 'import bitarray; bitarray.test()'
|
|
|
|
'';
|
|
|
|
|
2022-05-15 20:15:07 +02:00
|
|
|
pythonImportsCheck = [ "bitarray" ];
|
2021-03-02 16:13:29 -08:00
|
|
|
|
2018-10-22 17:13:46 -04:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient arrays of booleans";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/ilanschnell/bitarray";
|
2022-05-12 04:20:00 +00:00
|
|
|
changelog = "https://github.com/ilanschnell/bitarray/raw/${version}/CHANGE_LOG";
|
2018-10-22 17:13:46 -04:00
|
|
|
license = licenses.psfl;
|
2022-05-15 20:15:07 +02:00
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2018-10-22 17:13:46 -04:00
|
|
|
};
|
|
|
|
}
|