python3Packages.dataclasses-json: enable tests

This commit is contained in:
Fabian Affolter 2021-03-24 16:49:07 +01:00
parent 7a2c2d7f78
commit 712488a221

View file

@ -1,18 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, stringcase
, typing-inspect
, marshmallow-enum
, hypothesis
, mypy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "56ec931959ede74b5dedf65cf20772e6a79764d20c404794cce0111c88c085ff";
src = fetchFromGitHub {
owner = "lidatong";
repo = pname;
rev = "v${version}";
sha256 = "1gcnm41rwg0jvq4vhr57vv9hyasws425zl8h4p05x2nzq86l0w1n";
};
propagatedBuildInputs = [
@ -21,6 +26,19 @@ buildPythonPackage rec {
marshmallow-enum
];
checkInputs = [
hypothesis
mypy
pytestCheckHook
];
disabledTests = [
# AssertionError: Type annotations check failed
"test_type_hints"
];
pythonImportsCheck = [ "dataclasses_json" ];
meta = with lib; {
description = "Simple API for encoding and decoding dataclasses to and from JSON";
homepage = "https://github.com/lidatong/dataclasses-json";