at master 730 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "cstruct"; 10 version = "6.1"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "andreax79"; 15 repo = "python-cstruct"; 16 tag = "v${version}"; 17 hash = "sha256-9MC6f8U++vJkglBmGMTmiamE8XqUNKTzKOz7TA148Ys="; 18 }; 19 20 pythonImportsCheck = [ "cstruct" ]; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 meta = with lib; { 25 description = "C-style structs for Python"; 26 homepage = "https://github.com/andreax79/python-cstruct"; 27 changelog = "https://github.com/andreax79/python-cstruct/blob/${src.tag}/changelog.txt"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ tnias ]; 30 }; 31}