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