python312Packages.twill: refactor
This commit is contained in:
@@ -1,40 +1,48 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, httpx
|
||||
, lxml
|
||||
, requests
|
||||
, pyparsing
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "twill";
|
||||
version = "3.2.3";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-m4jrxx7udWkRXzYS0Yfd14tKVHt8kGYPn2eTa4unOdc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
httpx
|
||||
lxml
|
||||
requests
|
||||
pyparsing
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"twill"
|
||||
];
|
||||
|
||||
# pypi package comes without tests, other homepage does not provide all verisons
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple scripting language for Web browsing";
|
||||
homepage = "https://twill-tools.github.io/twill/";
|
||||
changelog = "https://github.com/twill-tools/twill/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user