1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 wheel,
7 parts,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "bitlist";
14 version = "1.2.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-+/rBno+OH7yEiN4K9VC6BCEPuOv8nNp0hU+fWegjqPw=";
22 };
23
24 postPatch = ''
25 substituteInPlace pyproject.toml \
26 --replace-fail '--cov=bitlist --cov-report term-missing' ""
27 '';
28
29 build-system = [
30 setuptools
31 wheel
32 ];
33
34 pythonRelaxDeps = [ "parts" ];
35
36 dependencies = [ parts ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 pythonImportsCheck = [ "bitlist" ];
41
42 meta = with lib; {
43 description = "Python library for working with little-endian list representation of bit strings";
44 homepage = "https://github.com/lapets/bitlist";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}