Merge pull request #94117 from marsam/enable-ihatemoney-darwin

python38Packages.ihatemoney: enable on darwin
This commit is contained in:
Mario Rodas 2020-07-29 15:13:04 -05:00 committed by GitHub
commit 24b1d2455f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 10 deletions

View file

@ -1,7 +1,4 @@
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
, flask, blinker, twill }:
with stdenv.lib;
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, flask, blinker, twill }:
buildPythonPackage rec {
pname = "Flask-Testing";
@ -13,13 +10,20 @@ buildPythonPackage rec {
};
postPatch = ''
sed -i -e 's/twill==0.9.1/twill/' setup.py
substituteInPlace setup.py --replace "twill==0.9.1" "twill"
'';
buildInputs = optionals (pythonOlder "3.0") [ twill ];
propagatedBuildInputs = [ flask blinker ];
propagatedBuildInputs = [ flask ];
meta = {
checkInputs = [ blinker ] ++ stdenv.lib.optionals (!isPy3k) [ twill ];
# twill integration is outdated in Python 2, hence it the tests fails.
# Some of the tests use localhost networking on darwin.
doCheck = isPy3k && !stdenv.isDarwin;
pythonImportsCheck = [ "flask_testing" ];
meta = with stdenv.lib; {
description = "Flask unittest integration.";
homepage = "https://pythonhosted.org/Flask-Testing/";
license = licenses.bsd3;

View file

@ -122,7 +122,6 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://ihatemoney.org";
description = "A simple shared budget manager web application";
platforms = platforms.linux;
license = licenses.beerware;
maintainers = [ maintainers.symphorien ];
};

View file

@ -23,7 +23,7 @@ buildPythonPackage rec {
doCheck = false; # pypi package comes without tests, other homepage does not provide all verisons
meta = with lib; {
homepage = "http://twill.idyll.org/";
homepage = "https://twill-tools.github.io/twill/";
description = "A simple scripting language for Web browsing";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];