diff options
author | Drew Risinger <drewrisinger@users.noreply.github.com> | 2020-01-20 18:55:16 -0500 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-02-12 08:40:31 -0800 |
commit | f87157e0d3804b781bfc17042d71406f4ba33e5c (patch) | |
tree | 69b57c39179f9ee6938decd7276d403ed6e714be /pkgs/development | |
parent | b67006fae1e12e9bd3ae43259ef575a434ff8fd9 (diff) | |
download | nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.tar nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.tar.gz nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.tar.bz2 nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.tar.lz nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.tar.xz nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.tar.zst nixpkgs-f87157e0d3804b781bfc17042d71406f4ba33e5c.zip |
pythonPackages.marshmallow-polyfield: init at 5.7
This python package allows polymorphic data fields in marshmallow serialization/deserialization schema. This is a requirement for qiskit.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/marshmallow-polyfield/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/marshmallow-polyfield/default.nix b/pkgs/development/python-modules/marshmallow-polyfield/default.nix new file mode 100644 index 00000000000..cb0b9e9e60d --- /dev/null +++ b/pkgs/development/python-modules/marshmallow-polyfield/default.nix @@ -0,0 +1,34 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib +, marshmallow + # Check Inputs +, pytestCheckHook +, pytestcov +}: + +buildPythonPackage rec { + pname = "marshmallow-polyfield"; + version = "5.7"; + + src = fetchFromGitHub { + owner = "Bachmann1234"; + repo = pname; + rev = "v${version}"; + sha256 = "15yx8ib5yx1xx6kq8wnfdmv9zm43k7y33c6zpq5rba6a30v4lcnd"; + }; + + propagatedBuildInputs = [ + marshmallow + ]; + + # setuptools check can run, but won't find tests + checkInputs = [ pytestCheckHook pytestcov ]; + + meta = with lib; { + description = "An unofficial extension to Marshmallow to allow for polymorphic fields"; + homepage = "https://github.com/Bachmann1234/marshmallow-polyfield"; + license = licenses.asl20; + maintainers = with maintainers; [ drewrisinger ]; + }; +} \ No newline at end of file |