1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, bitarray
6, setuptools
7, unittestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "bitstring";
12 version = "4.1.2";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "scott-griffiths";
19 repo = pname;
20 rev = "refs/tags/bitstring-${version}";
21 hash = "sha256-e4OnXwEuXz5m8d2PZOL5zDw8iGEzUg8LLk+xs/eGleA=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 propagatedBuildInputs = [
29 bitarray
30 ];
31
32 nativeCheckInputs = [ unittestCheckHook ];
33
34 pythonImportsCheck = [ "bitstring" ];
35
36 meta = with lib; {
37 description = "Module for binary data manipulation";
38 homepage = "https://github.com/scott-griffiths/bitstring";
39 license = licenses.mit;
40 platforms = platforms.unix;
41 maintainers = with maintainers; [ bjornfor ];
42 };
43}