1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python
5}:
6
7buildPythonPackage rec {
8 pname = "bitstring";
9 version = "3.1.9";
10
11 src = fetchFromGitHub {
12 owner = "scott-griffiths";
13 repo = pname;
14 rev = "bitstring-${version}";
15 sha256 = "0y2kcq58psvl038r6dhahhlhp1wjgr5zsms45wyz1naq6ri8x9qa";
16 };
17
18 checkPhase = ''
19 cd test
20 ${python.interpreter} -m unittest discover
21 '';
22
23 pythonImportsCheck = [ "bitstring" ];
24
25 meta = with lib; {
26 description = "Module for binary data manipulation";
27 homepage = "https://github.com/scott-griffiths/bitstring";
28 license = licenses.mit;
29 platforms = platforms.unix;
30 maintainers = with maintainers; [ bjornfor ];
31 };
32}