nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 bitarray, 6 setuptools, 7 pytest-benchmark, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "bitstring"; 13 version = "4.3.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "scott-griffiths"; 18 repo = "bitstring"; 19 tag = "bitstring-${version}"; 20 hash = "sha256-ZABAd42h+BqcpKTFV5PxcBN3F8FKV6Qw3rhP13eX57k="; 21 }; 22 23 pythonRelaxDeps = [ "bitarray" ]; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ bitarray ]; 28 29 nativeCheckInputs = [ 30 pytest-benchmark 31 pytestCheckHook 32 ]; 33 34 pytestFlags = [ 35 "--benchmark-disable" 36 ]; 37 38 disabledTestPaths = [ 39 "tests/test_bits.py" 40 "tests/test_fp8.py" 41 "tests/test_mxfp.py" 42 ]; 43 44 pythonImportsCheck = [ "bitstring" ]; 45 46 meta = { 47 description = "Module for binary data manipulation"; 48 homepage = "https://github.com/scott-griffiths/bitstring"; 49 changelog = "https://github.com/scott-griffiths/bitstring/releases/tag/${src.tag}"; 50 license = lib.licenses.mit; 51 platforms = lib.platforms.unix; 52 maintainers = with lib.maintainers; [ bjornfor ]; 53 }; 54}