
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
38 lines
759 B
Nix
38 lines
759 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
falcon,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "falcon-cors";
|
|
version = "1.1.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lwcolton";
|
|
repo = "falcon-cors";
|
|
tag = version;
|
|
hash = "sha256-jlEWP7gXbWfdY4coEIM6NWuBf4LOGbUAFMNvqip/FcA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ falcon ];
|
|
|
|
# Test fail with falcon >= 4
|
|
# https://github.com/lwcolton/falcon-cors/issues/25
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "falcon_cors" ];
|
|
|
|
meta = {
|
|
description = "CORS support for Falcon";
|
|
homepage = "https://github.com/lwcolton/falcon-cors";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ onny ];
|
|
};
|
|
}
|