nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, parts
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "bitlist";
12 version = "0.7.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-p3Gws48u1/AzltbtPyWvSX4O0u4MgSXiVq4GstpPCCg=";
20 };
21
22 propagatedBuildInputs = [
23 parts
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 nose
29 ];
30
31 pythonImportsCheck = [
32 "bitlist"
33 ];
34
35 postPatch = ''
36 substituteInPlace setup.cfg \
37 --replace " --cov=bitlist --cov-report term-missing" ""
38 '';
39
40 meta = with lib; {
41 description = "Python library for working with little-endian list representation of bit strings";
42 homepage = "https://github.com/lapets/bitlist";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}