mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 23:36:39 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
flask,
|
|
|
|
# tests
|
|
markdown,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-api";
|
|
version = "3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flask-api";
|
|
repo = "flask-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-nHgeI5FLKkDp4uWO+0eaT4YSOMkeQ0wE3ffyJF+WzTM=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
# werkzeug 3.0 support
|
|
url = "https://github.com/flask-api/flask-api/commit/9c998897f67d8aa959dc3005d7d22f36568b6938.patch";
|
|
hash = "sha256-vaCZ4gVlfQXyeksA44ydkjz2FxODHt3gTTP+ukJwEGY=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ flask ];
|
|
|
|
nativeCheckInputs = [
|
|
markdown
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/flask-api/flask-api";
|
|
changelog = "https://github.com/flask-api/flask-api/releases/tag/v${version}";
|
|
description = "Browsable web APIs for Flask";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
}
|