Martin Weinelt
2024-11-18 18:36:52 +01:00
parent 925d0ecf50
commit 8722d610ba
@@ -1,12 +1,11 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
hatchling,
pytestCheckHook,
mock,
pyyaml,
six,
# for passthru.tests
asgi-csrf,
@@ -18,20 +17,19 @@
buildPythonPackage rec {
pname = "python-multipart";
version = "0.0.12";
version = "0.0.17";
pyproject = true;
src = fetchPypi {
pname = "python_multipart";
inherit version;
hash = "sha256-BF4fmNcZwc4IXtf34e+djMyMAroCtVZtX3UhQQztWMs=";
src = fetchFromGitHub {
owner = "Kludex";
repo = "python-multipart";
rev = "refs/tags/${version}";
hash = "sha256-WtP2lPrBMRYjkae+/cMz+lN0Yf0uk2LL7RYjdOwQcXU=";
};
nativeBuildInputs = [ hatchling ];
build-system = [ hatchling ];
propagatedBuildInputs = [ six ];
pythonImportsCheck = [ "multipart" ];
pythonImportsCheck = [ "python_multipart" ];
nativeCheckInputs = [
pytestCheckHook
@@ -50,8 +48,9 @@ buildPythonPackage rec {
};
meta = with lib; {
changelog = "https://github.com/Kludex/python-multipart/blob/${src.rev}/CHANGELOG.md";
description = "Streaming multipart parser for Python";
homepage = "https://github.com/andrew-d/python-multipart";
homepage = "https://github.com/Kludex/python-multipart";
license = licenses.asl20;
maintainers = with maintainers; [ ris ];
};