Files
nixpkgs/pkgs/development/python-modules/marshmallow-polyfield/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
864 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
marshmallow,
pythonOlder,
pytestCheckHook,
pytest-cov-stub,
setuptools,
}:
buildPythonPackage rec {
pname = "marshmallow-polyfield";
version = "5.11";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Bachmann1234";
repo = "marshmallow-polyfield";
tag = "v${version}";
hash = "sha256-jbpeyih2Ccw1Rk+QcXRO9AfN5B/DhZmxa/M6FzXHqqs=";
};
build-system = [ setuptools ];
dependencies = [ marshmallow ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "marshmallow" ];
meta = {
description = "Extension to Marshmallow to allow for polymorphic fields";
homepage = "https://github.com/Bachmann1234/marshmallow-polyfield";
license = lib.licenses.asl20;
maintainers = [ ];
};
}