2019-07-18 23:23:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, marshmallow
|
2019-11-15 21:14:25 +00:00
|
|
|
, pytestCheckHook
|
2019-07-18 23:23:37 +01:00
|
|
|
, isPy27
|
|
|
|
, enum34
|
|
|
|
, pytest-flake8
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "marshmallow-enum";
|
2019-11-15 21:14:25 +00:00
|
|
|
version = "1.5.1";
|
2019-07-18 23:23:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justanr";
|
|
|
|
repo = "marshmallow_enum";
|
|
|
|
rev = "v${version}";
|
2019-11-15 21:14:25 +00:00
|
|
|
sha256 = "1ihrcmyfjabivg6hc44i59hnw5ijlg1byv3zs1rqxfynp8xr7398";
|
2019-07-18 23:23:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
marshmallow
|
|
|
|
] ++ lib.optionals isPy27 [ enum34 ];
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-11-15 21:14:25 +00:00
|
|
|
pytestCheckHook
|
2019-07-18 23:23:37 +01:00
|
|
|
pytest-flake8
|
|
|
|
];
|
|
|
|
|
2019-11-15 21:14:25 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_custom_error_in_deserialize_by_name"
|
|
|
|
"test_custom_error_in_deserialize_by_value"
|
|
|
|
];
|
2019-07-18 23:23:37 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Enum field for Marshmallow";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/justanr/marshmallow_enum";
|
2019-07-18 23:23:37 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|