mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
python3Packages.dataclasses-json: enable tests
This commit is contained in:
parent
7a2c2d7f78
commit
712488a221
1 changed files with 22 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue