python310Packages.twill: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-11 21:41:32 +02:00 committed by GitHub
parent fe847a48c9
commit 7ff4a7e624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,31 +1,41 @@
{ lib, buildPythonPackage, fetchPypi, nose
{ lib
, buildPythonPackage
, fetchPypi
, lxml
, requests
, pyparsing
, pythonOlder
}:
buildPythonPackage rec {
pname = "twill";
version = "3.0.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-dWtrdkiR1+IBfeF9jwbOjKE2UMXDJji0iOb+USbY7zk=";
hash = "sha256-dWtrdkiR1+IBfeF9jwbOjKE2UMXDJji0iOb+USbY7zk=";
};
checkInputs = [ nose ];
propagatedBuildInputs = [
lxml
requests
pyparsing
];
doCheck = false; # pypi package comes without tests, other homepage does not provide all verisons
pythonImportsCheck = [
"twill"
];
# pypi package comes without tests, other homepage does not provide all verisons
doCheck = false;
meta = with lib; {
homepage = "https://twill-tools.github.io/twill/";
description = "A simple scripting language for Web browsing";
license = licenses.mit;
homepage = "https://twill-tools.github.io/twill/";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
};
}