Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions pkgs/development/python-modules/dataclasses-json/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, stringcase
, typing-inspect
, marshmallow-enum
, python3Packages
}:

buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.2";
version = "0.5.3";

src = fetchPypi {
inherit pname version;
sha256 = "56ec931959ede74b5dedf65cf20772e6a79764d20c404794cce0111c88c085ff";
src = fetchFromGitHub {
owner = "lidatong";
repo = "dataclasses-json";
rev = "v${version}";
sha256 = "sha256-4Jh79aoGQzgjBqHiWrmeyIlU+jPnsBgvdpwyh5tAd4I=";
};

propagatedBuildInputs = [
Expand All @@ -21,10 +24,19 @@ buildPythonPackage rec {
marshmallow-enum
];

checkInputs = with python3Packages; [
Copy link
Member

@fabaff fabaff May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests would be enabled with 4053c81 in #115114.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thanks! I'll make this a draft until that gets merged in and I'll rebase off of your changes.

hypothesis
mypy
pytest
];
# Ignoring the tests/test_annotations test because it fails due to not being
# able to find a library stub for 'mypy.main'.
checkPhase = "pytest --ignore tests/test_annotations.py";

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 ];
maintainers = with maintainers; [ albakham sumnerevans ];
};
}