1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, wheel
6, parts
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "bitlist";
13 version = "1.2.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-+/rBno+OH7yEiN4K9VC6BCEPuOv8nNp0hU+fWegjqPw=";
21 };
22
23 postPatch = ''
24 substituteInPlace pyproject.toml \
25 --replace '--cov=bitlist --cov-report term-missing' ""
26 '';
27
28 nativeBuildInputs = [
29 setuptools
30 wheel
31 ];
32
33 propagatedBuildInputs = [
34 parts
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "bitlist"
43 ];
44
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 };
51}