2021-06-25 13:13:17 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
}:
|
2018-10-22 23:13:46 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bitarray";
|
2021-09-13 04:01:45 +02:00
|
|
|
version = "2.3.4";
|
2018-10-22 23:13:46 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-13 04:01:45 +02:00
|
|
|
sha256 = "f19c62425576d3d1821ed711b94d1a4e5ede8f05ca121e99b6d978ed49c7a765";
|
2018-10-22 23:13:46 +02:00
|
|
|
};
|
|
|
|
|
2021-04-23 12:03:52 +02:00
|
|
|
checkPhase = ''
|
|
|
|
cd $out
|
|
|
|
${python.interpreter} -c 'import bitarray; bitarray.test()'
|
|
|
|
'';
|
|
|
|
|
2021-03-03 01:13:29 +01:00
|
|
|
pythonImportsCheck = [ "bitarray" ];
|
|
|
|
|
2018-10-22 23:13:46 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient arrays of booleans";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/ilanschnell/bitarray";
|
2020-05-23 09:03:01 +02:00
|
|
|
changelog = "https://github.com/ilanschnell/bitarray/blob/master/CHANGE_LOG";
|
2018-10-22 23:13:46 +02:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
|
|
|
};
|
|
|
|
}
|