anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / dataclass-factory / default.nix
blob83de3f7218324161568c631d58c4207aa98f7f0a
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   nose2,
6   typing-extensions,
7 }:
9 buildPythonPackage rec {
10   pname = "dataclass-factory";
11   version = "2.16";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "reagento";
16     repo = "dataclass-factory";
17     rev = version;
18     hash = "sha256-0BIWgyAV1hJzFX4xYFqswvQi5F1Ce+V9FKSmNYuJfZM=";
19   };
21   nativeCheckInputs = [ nose2 ];
23   checkInputs = [ typing-extensions ];
25   pythonImportsCheck = [ "dataclass_factory" ];
27   checkPhase = ''
28     runHook preCheck
30     nose2 -v tests
32     runHook postCheck
33   '';
35   meta = with lib; {
36     description = "Modern way to convert python dataclasses or other objects to and from more common types like dicts or json-like structures";
37     homepage = "https://github.com/reagento/dataclass-factory";
38     changelog = "https://github.com/reagento/dataclass-factory/releases/tag/${src.rev}";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ figsoda ];
41   };