Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / construct-classes / default.nix
blob386c386ef42f1b6b74a6103217c46138e7d19dd2
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , poetry-core
6 , construct
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname   = "construct-classes";
12   version = "0.1.2";
13   format = "pyproject";
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   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   propagatedBuildInputs = [
28     construct
29   ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "construct_classes" ];
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   };