depot/third_party/nixpkgs/pkgs/development/python-modules/bitarray/default.nix

37 lines
758 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "bitarray";
version = "2.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-5ozu81qIYl0WFpVQdo/MjTiUkT42PCTsv2uMB+sCyPM=";
};
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 ];
};
}