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

27 lines
670 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, python }:
2018-10-22 21:13:46 +00:00
buildPythonPackage rec {
pname = "bitarray";
version = "2.0.1";
2018-10-22 21:13:46 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7DpPbXEaee0jrqlUFjjTNT3D8IPyk6ExgLFLSC4+Ge8=";
2018-10-22 21:13:46 +00:00
};
checkPhase = ''
cd $out
${python.interpreter} -c 'import bitarray; bitarray.test()'
'';
pythonImportsCheck = [ "bitarray" ];
2018-10-22 21:13:46 +00:00
meta = with lib; {
description = "Efficient arrays of booleans";
homepage = "https://github.com/ilanschnell/bitarray";
changelog = "https://github.com/ilanschnell/bitarray/blob/master/CHANGE_LOG";
2018-10-22 21:13:46 +00:00
license = licenses.psfl;
maintainers = [ maintainers.bhipple ];
};
}