1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, parts
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "bitlist";
11 version = "0.5.1";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-bX/Z5FBm21gX4ax/HfqD2bNotZyNFX7dHCEN5uZzQJQ=";
16 };
17
18 propagatedBuildInputs = [
19 parts
20 ];
21
22 checkInputs = [
23 pytestCheckHook
24 nose
25 ];
26
27 postPatch = ''
28 substituteInPlace setup.py \
29 --replace "parts~=1.0.3" "parts>=1.0.3"
30 '';
31
32 pythonImportsCheck = [ "bitlist" ];
33
34 meta = with lib; {
35 description = "Python library for working with little-endian list representation of bit strings";
36 homepage = "https://github.com/lapets/bitlist";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}