Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / bitlist / default.nix
blob30198b7a1a17659fb64918ad6a1ef9d019c053d4
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools
5 , wheel
6 , parts
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "bitlist";
13   version = "1.2.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-+/rBno+OH7yEiN4K9VC6BCEPuOv8nNp0hU+fWegjqPw=";
21   };
23   postPatch = ''
24     substituteInPlace pyproject.toml \
25       --replace '--cov=bitlist --cov-report term-missing' ""
26   '';
28   nativeBuildInputs = [
29     setuptools
30     wheel
31   ];
33   propagatedBuildInputs = [
34     parts
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [
42     "bitlist"
43   ];
45   meta = with lib; {
46     description = "Python library for working with little-endian list representation of bit strings";
47     homepage = "https://github.com/lapets/bitlist";
48     license = with licenses; [ mit ];
49     maintainers = with maintainers; [ fab ];
50   };