diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-18 18:23:37 -0400 |
---|---|---|
committer | Ariel <ingenieroariel@gmail.com> | 2019-11-15 16:04:47 -0500 |
commit | a380071085f5a175a507f6bb360a208c31b2f52b (patch) | |
tree | d1662919f822e9f9a90b9667a1115175cfc267a4 /pkgs/development/python-modules/marshmallow-enum | |
parent | 908fb25f58e42e41285abd78023f2dcd1cebd819 (diff) | |
download | nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.tar nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.tar.gz nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.tar.bz2 nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.tar.lz nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.tar.xz nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.tar.zst nixpkgs-a380071085f5a175a507f6bb360a208c31b2f52b.zip |
pythonPackages.marshmallow-enum: init at 1.4.1
Diffstat (limited to 'pkgs/development/python-modules/marshmallow-enum')
-rw-r--r-- | pkgs/development/python-modules/marshmallow-enum/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/marshmallow-enum/default.nix b/pkgs/development/python-modules/marshmallow-enum/default.nix new file mode 100644 index 00000000000..0188ba6d367 --- /dev/null +++ b/pkgs/development/python-modules/marshmallow-enum/default.nix @@ -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 ]; + }; +} |