nixpkgs-suyu/pkgs/development/python-modules/bitlist/default.nix

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

47 lines
864 B
Nix
Raw Normal View History

2021-03-03 13:48:33 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, nose
, parts
, pytestCheckHook
, pythonOlder
2021-03-03 13:48:33 +01:00
}:
buildPythonPackage rec {
pname = "bitlist";
version = "0.7.0";
format = "setuptools";
2021-03-03 13:48:33 +01:00
disabled = pythonOlder "3.7";
2021-03-03 13:48:33 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-p3Gws48u1/AzltbtPyWvSX4O0u4MgSXiVq4GstpPCCg=";
2021-03-03 13:48:33 +01:00
};
propagatedBuildInputs = [
parts
];
checkInputs = [
pytestCheckHook
nose
];
pythonImportsCheck = [
"bitlist"
];
2021-03-03 13:48:33 +01:00
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=bitlist --cov-report term-missing" ""
'';
2021-03-03 13:48:33 +01:00
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 ];
};
}