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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
759 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
python,
pythonOlder,
}:
2018-10-22 17:13:46 -04:00
buildPythonPackage rec {
pname = "bitarray";
version = "2.9.2";
format = "setuptools";
disabled = pythonOlder "3.7";
2018-10-22 17:13:46 -04:00
src = fetchPypi {
inherit pname version;
hash = "sha256-qPKGpRoyMjcV13dV7ZWflL7xOXLpov5xtgnkDm0nlX4=";
2018-10-22 17:13:46 -04:00
};
checkPhase = ''
cd $out
${python.interpreter} -c 'import bitarray; bitarray.test()'
'';
pythonImportsCheck = [ "bitarray" ];
2018-10-22 17:13:46 -04:00
meta = with lib; {
description = "Efficient arrays of booleans";
homepage = "https://github.com/ilanschnell/bitarray";
changelog = "https://github.com/ilanschnell/bitarray/raw/${version}/CHANGE_LOG";
2018-10-22 17:13:46 -04:00
license = licenses.psfl;
maintainers = with maintainers; [ bhipple ];
2018-10-22 17:13:46 -04:00
};
}