Merge pull request #94117 from marsam/enable-ihatemoney-darwin
python38Packages.ihatemoney: enable on darwin
This commit is contained in:
commit
24b1d2455f
@ -1,7 +1,4 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
|
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, flask, blinker, twill }:
|
||||||
, flask, blinker, twill }:
|
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "Flask-Testing";
|
pname = "Flask-Testing";
|
||||||
@ -13,13 +10,20 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
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 ];
|
||||||
propagatedBuildInputs = [ flask blinker ];
|
|
||||||
|
|
||||||
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.";
|
description = "Flask unittest integration.";
|
||||||
homepage = "https://pythonhosted.org/Flask-Testing/";
|
homepage = "https://pythonhosted.org/Flask-Testing/";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
@ -122,7 +122,6 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://ihatemoney.org";
|
homepage = "https://ihatemoney.org";
|
||||||
description = "A simple shared budget manager web application";
|
description = "A simple shared budget manager web application";
|
||||||
platforms = platforms.linux;
|
|
||||||
license = licenses.beerware;
|
license = licenses.beerware;
|
||||||
maintainers = [ maintainers.symphorien ];
|
maintainers = [ maintainers.symphorien ];
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
|||||||
doCheck = false; # pypi package comes without tests, other homepage does not provide all verisons
|
doCheck = false; # pypi package comes without tests, other homepage does not provide all verisons
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://twill.idyll.org/";
|
homepage = "https://twill-tools.github.io/twill/";
|
||||||
description = "A simple scripting language for Web browsing";
|
description = "A simple scripting language for Web browsing";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mic92 ];
|
maintainers = with maintainers; [ mic92 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user