Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 construct, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "construct-classes"; 12 version = "0.1.2"; 13 format = "pyproject"; 14 15 # no tests in PyPI tarball 16 src = fetchFromGitHub { 17 owner = "matejcik"; 18 repo = "construct-classes"; 19 rev = "v${version}"; 20 hash = "sha256-l4sVacKTuQbhXCw2lVHCl1OzpCiKmEAm9nSQ8pxFuTo="; 21 }; 22 23 nativeBuildInputs = [ poetry-core ]; 24 25 propagatedBuildInputs = [ construct ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "construct_classes" ]; 30 31 meta = with lib; { 32 description = "Parse your binary data into dataclasses"; 33 homepage = "https://github.com/matejcik/construct-classes"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ prusnak ]; 36 }; 37}