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