Skip to content

Commit

Permalink
python3Packages.dataclasses-json: init at 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
albakham committed Jul 25, 2020
1 parent d3fdd46 commit 3dd951c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/dataclasses-json/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, stringcase
, typing-inspect
, marshmallow-enum
}:

buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.1";

src = fetchPypi {
inherit pname version;
sha256 = "0nkgp4pd7j7ydrciiix4x0w56l5w6qvj2vgxpwj42h4f2wdv2f3f";
};

propagatedBuildInputs = [
stringcase
typing-inspect
marshmallow-enum
];

meta = with lib; {
description = "Simple API for encoding and decoding dataclasses to and from JSON";
homepage = "https://github.com/lidatong/dataclasses-json";
license = licenses.mit;
maintainers = with maintainers; [ albakham ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2132,6 +2132,8 @@ in {

dataclasses = callPackage ../development/python-modules/dataclasses { };

dataclasses-json = callPackage ../development/python-modules/dataclasses-json { };

debian = callPackage ../development/python-modules/debian {};

defusedxml = callPackage ../development/python-modules/defusedxml {};
Expand Down

0 comments on commit 3dd951c

Please sign in to comment.