pythonPackages.marshmallow-enum: init at 1.4.1
This commit is contained in:
parent
908fb25f58
commit
a380071085
2 changed files with 43 additions and 0 deletions
41
pkgs/development/python-modules/marshmallow-enum/default.nix
Normal file
41
pkgs/development/python-modules/marshmallow-enum/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, marshmallow
|
||||
, pytest
|
||||
, isPy27
|
||||
, enum34
|
||||
, pytest-flake8
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "marshmallow-enum";
|
||||
version = "1.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "justanr";
|
||||
repo = "marshmallow_enum";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ll65y8p0np6ayy8h8g5psf9xm7s0nclarxsh21fdsm72zscx356";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
marshmallow
|
||||
] ++ lib.optionals isPy27 [ enum34 ];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytest-flake8
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Enum field for Marshmallow";
|
||||
homepage = https://github.com/justanr/marshmallow_enum;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
|
@ -3838,6 +3838,8 @@ in {
|
|||
|
||||
marshmallow = callPackage ../development/python-modules/marshmallow { };
|
||||
|
||||
marshmallow-enum = callPackage ../development/python-modules/marshmallow-enum { };
|
||||
|
||||
marshmallow-sqlalchemy = callPackage ../development/python-modules/marshmallow-sqlalchemy { };
|
||||
|
||||
manuel = callPackage ../development/python-modules/manuel { };
|
||||
|
|
Loading…
Reference in a new issue