depot/third_party/nixpkgs/pkgs/development/python-modules/dataclasses-json/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

48 lines
942 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, stringcase
, typing-inspect
, marshmallow-enum
, hypothesis
, mypy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.4";
src = fetchFromGitHub {
owner = "lidatong";
repo = pname;
rev = "v${version}";
sha256 = "193xklf1xrsin7fr24yqx5ckr4m5s9v1bdyr00qr51j74hiy8qsv";
};
propagatedBuildInputs = [
stringcase
typing-inspect
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";
license = licenses.mit;
maintainers = with maintainers; [ albakham ];
};
}