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