diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-24 16:49:07 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-21 08:51:37 +0200 |
commit | 712488a221e19b3391b20e6cb0fe26dca76863ab (patch) | |
tree | 12b01132c533cbd9625a8112cff9eb1fb0f54d89 | |
parent | 7a2c2d7f785e6cdfb05fb5dd427d9a0b333e85d6 (diff) | |
download | nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.tar nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.tar.gz nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.tar.bz2 nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.tar.lz nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.tar.xz nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.tar.zst nixlib-712488a221e19b3391b20e6cb0fe26dca76863ab.zip |
python3Packages.dataclasses-json: enable tests
-rw-r--r-- | pkgs/development/python-modules/dataclasses-json/default.nix | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/dataclasses-json/default.nix b/pkgs/development/python-modules/dataclasses-json/default.nix index 36430a29ef0f..4a2a410c4ad5 100644 --- a/pkgs/development/python-modules/dataclasses-json/default.nix +++ b/pkgs/development/python-modules/dataclasses-json/default.nix @@ -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"; |