1{ lib 2, stdenv 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 = [ 24 poetry-core 25 ]; 26 27 propagatedBuildInputs = [ 28 construct 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "construct_classes" ]; 34 35 meta = with lib; { 36 description = "Parse your binary data into dataclasses."; 37 homepage = "https://github.com/matejcik/construct-classes"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ prusnak ]; 40 }; 41}