diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/construct-classes/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/construct-classes/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/construct-classes/default.nix b/nixpkgs/pkgs/development/python-modules/construct-classes/default.nix new file mode 100644 index 000000000000..386c386ef42f --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/construct-classes/default.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, construct +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "construct-classes"; + version = "0.1.2"; + format = "pyproject"; + + # no tests in PyPI tarball + src = fetchFromGitHub { + owner = "matejcik"; + repo = "construct-classes"; + rev = "v${version}"; + hash = "sha256-l4sVacKTuQbhXCw2lVHCl1OzpCiKmEAm9nSQ8pxFuTo="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + construct + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "construct_classes" ]; + + meta = with lib; { + description = "Parse your binary data into dataclasses."; + homepage = "https://github.com/matejcik/construct-classes"; + license = licenses.mit; + maintainers = with maintainers; [ prusnak ]; + }; +} |