python311Packages.flask-restx: refactor

This commit is contained in:
Fabian Affolter 2024-03-28 08:45:07 +01:00 committed by GitHub
parent 23392b616f
commit 6699cb2452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,24 +17,29 @@
, pytest-mock , pytest-mock
, pytest-benchmark , pytest-benchmark
, pytestCheckHook , pytestCheckHook
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "flask-restx"; pname = "flask-restx";
version = "1.3.0"; version = "1.3.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
# Tests not included in PyPI tarball # Tests not included in PyPI tarball
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "python-restx"; owner = "python-restx";
repo = pname; repo = "flask-restx";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI="; hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
}; };
propagatedBuildInputs = [ build-system = [
setuptools
];
dependencies = [
aniso8601 aniso8601
flask flask
importlib-resources importlib-resources