Files
nixpkgs/pkgs/development/python-modules/marshmallow-enum/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

46 lines
882 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, marshmallow
, pytestCheckHook
, isPy27
, enum34
}:
buildPythonPackage rec {
pname = "marshmallow-enum";
version = "1.5.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "justanr";
repo = "marshmallow_enum";
rev = "v${version}";
sha256 = "1ihrcmyfjabivg6hc44i59hnw5ijlg1byv3zs1rqxfynp8xr7398";
};
postPatch = ''
sed -i '/addopts/d' tox.ini
'';
propagatedBuildInputs = [
marshmallow
] ++ lib.optionals isPy27 [ enum34 ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
"test_custom_error_in_deserialize_by_name"
"test_custom_error_in_deserialize_by_value"
];
meta = with lib; {
description = "Enum field for Marshmallow";
homepage = "https://github.com/justanr/marshmallow_enum";
license = licenses.mit;
maintainers = [ ];
};
}