3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/bitlist/default.nix

41 lines
769 B
Nix
Raw Normal View History

2021-03-03 12:48:33 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, nose
, parts
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "bitlist";
version = "0.5.1";
2021-03-03 12:48:33 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-bX/Z5FBm21gX4ax/HfqD2bNotZyNFX7dHCEN5uZzQJQ=";
2021-03-03 12:48:33 +00:00
};
propagatedBuildInputs = [
parts
];
checkInputs = [
pytestCheckHook
nose
];
postPatch = ''
substituteInPlace setup.py \
--replace "parts~=1.0.3" "parts>=1.0.3"
'';
2021-03-03 12:48:33 +00:00
pythonImportsCheck = [ "bitlist" ];
meta = with lib; {
description = "Python library for working with little-endian list representation of bit strings";
homepage = "https://github.com/lapets/bitlist";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}