nixpkgs/pkgs/development/python-modules/nested-multipart-parser/default.nix

45 lines
901 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# tests
django,
djangorestframework,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "nested-multipart-parser";
version = "1.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "remigermain";
repo = "nested-multipart-parser";
tag = version;
hash = "sha256-9IGfYb6mVGkoE/6iDg0ap8c+0vrBDKK1DxzLRyfeWOk=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
django
djangorestframework
pytestCheckHook
];
pythonImportsCheck = [
"nested_multipart_parser"
];
meta = {
changelog = "https://github.com/remigermain/nested-multipart-parser/releases/tag/${src.tag}";
description = "Parser for nested data for 'multipart/form'";
homepage = "https://github.com/remigermain/nested-multipart-parser";
license = lib.licenses.mit;
};
}