nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 803 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage (finalAttrs: { 10 pname = "cstruct"; 11 version = "6.2"; 12 pyproject = true; 13 14 build-system = [ setuptools ]; 15 16 src = fetchFromGitHub { 17 owner = "andreax79"; 18 repo = "python-cstruct"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-jLpuvApEP8Acva/OV3ulwl4+dOy8t/cD/LFJWWnD3BM="; 21 }; 22 23 pythonImportsCheck = [ "cstruct" ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 meta = { 28 description = "C-style structs for Python"; 29 homepage = "https://github.com/andreax79/python-cstruct"; 30 changelog = "https://github.com/andreax79/python-cstruct/blob/${finalAttrs.src.tag}/changelog.txt"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ tnias ]; 33 }; 34})