Merge pull request #113197 from fabaff/fix-modeled

This commit is contained in:
Sandro 2021-02-16 22:05:03 +01:00 committed by GitHub
commit e7b055d5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 21 deletions

View File

@ -24,9 +24,11 @@ buildPythonPackage rec {
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "modeled" ];
meta = with lib; {
description = "Universal data modeling for Python";
homepage = "https://bitbucket.org/userzimmermann/python-modeled";
homepage = "https://github.com/modeled/modeled";
license = licenses.lgpl3Only;
maintainers = [ maintainers.costrouc ];
};

View File

@ -8,7 +8,7 @@
, six
, zetup
, modeled
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
@ -20,9 +20,7 @@ buildPythonPackage rec {
sha256 = "0377ikajf6c3zcy3lc0kh4w9zmlqyplk2c2hb0yyc7h3jnfnya96";
};
nativeBuildInputs = [
zetup
];
nativeBuildInputs = [ zetup ];
propagatedBuildInputs = [
robotframework
@ -32,19 +30,21 @@ buildPythonPackage rec {
modeled
];
checkInputs = [
pytest
];
checkPhase = ''
# tests require network
pytest test --ignore test/remote/test_remote.py
postPatch = ''
# Remove upstream's selfmade approach to collect the dependencies
# https://github.com/userzimmermann/robotframework-tools/issues/1
substituteInPlace setup.py --replace \
"setup_requires=SETUP_REQUIRES + (zfg.SETUP_REQUIRES or [])," ""
'';
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test" ];
pythonImportsCheck = [ "robottools" ];
meta = with lib; {
description = "Python Tools for Robot Framework and Test Libraries";
homepage = "https://bitbucket.org/userzimmermann/robotframework-tools";
license = licenses.gpl3;
homepage = "https://github.com/userzimmermann/robotframework-tools";
license = licenses.gpl3Plus;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -1,6 +1,11 @@
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pathpy, nbconvert
, pytest }:
{ lib
, buildPythonPackage
, fetchPypi
, nbconvert
, pathpy
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "zetup";
@ -11,18 +16,25 @@ buildPythonPackage rec {
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
};
# Python 3.8 compatibility
# Python > 3.7 compatibility
postPatch = ''
substituteInPlace zetup/zetup_config.py \
--replace "'3.7']" "'3.7', '3.8']"
--replace "'3.7']" "'3.7', '3.8', '3.9', '3.10']"
'';
checkPhase = ''
py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
'';
checkInputs = [ pytest pathpy nbconvert ];
propagatedBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ setuptools-scm ];
checkInputs = [
pathpy
nbconvert
pytestCheckHook
];
pythonImportsCheck = [ "zetup" ];
meta = with lib; {
description = "Zimmermann's Extensible Tools for Unified Project setups";