nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "bitstruct";
11 version = "8.22.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "eerimoq";
16 repo = "bitstruct";
17 tag = version;
18 hash = "sha256-Egiac+1x3HaaGV6ThjChfjKbT0WvQDb1EMuyOxLY7Kg=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 pythonImportsCheck = [ "bitstruct" ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 meta = {
32 description = "Python bit pack/unpack package";
33 homepage = "https://github.com/eerimoq/bitstruct";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ jakewaksbaum ];
36 };
37}