mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 05:33:25 +00:00
python312Packages.httpserver: refactor (#349070)
This commit is contained in:
commit
bdea7fc254
@ -1,30 +1,49 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
fetchPypi,
|
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
docopt,
|
docopt,
|
||||||
|
fetchPypi,
|
||||||
|
freezegun,
|
||||||
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
|
selenium,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "httpserver";
|
pname = "httpserver";
|
||||||
version = "1.1.0";
|
version = "1.1.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
buildInputs = [ docopt ];
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
# Tests pull in lots of other dependencies to emulate different web
|
|
||||||
# drivers.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1q62g324dvb0hqdwwrnj41sqr4d3ly78v9nc26rz1whj4pwdmhsv";
|
hash = "sha256-W8Pa+CUS8vCzEcymjY6no5GMdSDSZs4bhmDtRsR4wuA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [ docopt ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
freezegun
|
||||||
|
selenium
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "httpserver" ];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Tests want driver for Firefox
|
||||||
|
"tests/test_selenium.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Asyncio implementation of an HTTP server";
|
description = "Asyncio implementation of an HTTP server";
|
||||||
mainProgram = "httpserver";
|
|
||||||
homepage = "https://github.com/thomwiggers/httpserver";
|
homepage = "https://github.com/thomwiggers/httpserver";
|
||||||
license = with lib.licenses; [ bsd3 ];
|
license = with lib.licenses; [ bsd3 ];
|
||||||
|
maintainers = [ ];
|
||||||
|
mainProgram = "httpserver";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user