depot/third_party/nixpkgs/pkgs/development/python-modules/construct-classes/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
826 B
Nix

{
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 ];
};
}