nixpkgs-suyu/pkgs/development/python-modules/bitlist/default.nix
2023-04-27 22:42:59 +02:00

51 lines
961 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, nose
, parts
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "bitlist";
version = "1.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-eViakuhgSe9E8ltxzeg8m6/ze7QQvoKBtYZoBZzHxlA=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
parts
];
nativeCheckInputs = [
pytestCheckHook
nose
];
pythonImportsCheck = [
"bitlist"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--doctest-modules --ignore=docs --cov=bitlist --cov-report term-missing" ""
'';
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 ];
};
}