Skip to content

Commit

Permalink
python312Packages.twill: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Apr 29, 2024
1 parent bb54a0c commit ad94a16
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pkgs/development/python-modules/twill/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
Expand Down

0 comments on commit ad94a16

Please sign in to comment.