From c2aa39d3ede5dd4e564997f434bed70395c6bb85 Mon Sep 17 00:00:00 2001 From: raingloom Date: Tue, 21 Sep 2021 01:13:19 +0200 Subject: gnu: Update python-mypy to 0.910. * gnu/packages/python-check.scm (python-mypy): Update to 0.910. [arguments]: Make --without-tests work with custom check phase. [propagated-inputs]: Add python-toml to fix missing import in mypyc. Signed-off-by: Efraim Flashner --- gnu/packages/python-check.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index b8d63b8479..eeaedb9927 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1343,7 +1343,7 @@ supported by the MyPy typechecker.") (define-public python-mypy (package (name "python-mypy") - (version "0.790") + (version "0.910") (source (origin ;; Because of https://github.com/python/mypy/issues/9584, the @@ -1360,14 +1360,15 @@ supported by the MyPy typechecker.") (file-name (git-file-name name version)) (sha256 (base32 - "0zq3lpdf9hphcklk40wz444h8w3dkhwa12mqba5j9lmg11klnhz7")))) + "16ryn9d48ilcs3yrkrm9ynx36qnv0gkdkc4sbafpagcqgr2f0mrg")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "pytest" "mypyc")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "mypyc"))))))) (native-inputs `(("python-attrs" ,python-attrs) ("python-flake8" ,python-flake8) @@ -1383,6 +1384,7 @@ supported by the MyPy typechecker.") ("python-virtualenv" ,python-virtualenv))) (propagated-inputs `(("python-mypy-extensions" ,python-mypy-extensions) + ("python-toml" ,python-toml) ("python-typing-extensions" ,python-typing-extensions) ("python-typed-ast" ,python-typed-ast))) (home-page "http://www.mypy-lang.org/") -- cgit v1.2.3 From 34cf1f451e30727b8af1de8c5e033852664e30a1 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 28 Sep 2021 22:25:39 -0400 Subject: gnu: Add python-pytest-csv. * gnu/packages/python-check.scm (python-pytest-csv): New variable. --- gnu/packages/python-check.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index eeaedb9927..de0a98978a 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -88,6 +88,43 @@ data in a standard way.") interfaces with pytest.") (license license:expat))) +(define-public python-pytest-csv + (package + (name "python-pytest-csv") + (version "3.0.0") + (source + (origin + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/nicoulaj/pytest-csv") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17518f2fn5l98lyk9p8r7215c1whi61imzrh6ahrmcksr8w0zz04")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest"))))))) + (native-inputs + `(("python-pytest-flake8" ,python-pytest-flake8) + ("python-pytest-xdist" ,python-pytest-xdist-next) + ("python-tabulate" ,python-tabulate))) + (propagated-inputs + `(("python-pytest" ,python-pytest-6) + ("python-six" ,python-six))) + (home-page "https://github.com/nicoulaj/pytest-csv") + (synopsis "CSV reporter for Pytest") + (description "This packages provides a plugin for Pytest that enables a +CSV output mode for Pytest. It can be enabled via the @option{--csv} option +it adds to the Pytest command line interface (CLI).") + (license license:gpl3+))) + (define-public python-testfixtures (package (name "python-testfixtures") -- cgit v1.2.3 From e2c58b91500b4df0979a6e823fc66b0ed1da2d84 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 30 Sep 2021 10:27:55 -0400 Subject: gnu: Add python-pytest-repeat. * gnu/packages/python-check.scm (python-pytest-repeat): New variable. --- gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index de0a98978a..d5ebb918b8 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -553,6 +553,35 @@ developers to control unit tests that require access to data from the internet.") (license license:bsd-3))) +(define-public python-pytest-repeat + (package + (name "python-pytest-repeat") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-repeat" version)) + (sha256 + (base32 "0nxdbghjz6v4xidl5ky9wlx6z4has3vygj5r7va5ccdb8nbjilsw")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (propagated-inputs + `(("python-pytest" ,python-pytest))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/pytest-dev/pytest-repeat") + (synopsis "Pytest plugin for repeating tests") + (description "@code{pytest-repeat} is a plugin for Pytest that makes it +enables repeating a single test, or multiple tests, a specific number of +times.") + (license license:mpl2.0))) + (define-public python-pytest-mpl (package (name "python-pytest-mpl") -- cgit v1.2.3 From 1aa7f017e84491c83e4e90121a31ece6383abe2b Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 1 Oct 2021 09:54:02 -0400 Subject: gnu: Add python-pytest-exploratory. * gnu/packages/python-check.scm (python-pytest-exploratory): New variable. --- gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index d5ebb918b8..8252f02182 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -418,6 +418,35 @@ are too large to conveniently hard-code them in the tests.") advanced doctest support and enables the testing of reStructuredText files.") (license license:bsd-3))) +(define-public python-pytest-exploratory + (package + (name "python-pytest-exploratory") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest_exploratory" version)) + (sha256 + (base32 "159rcqv6wrdqdlag1gz39n6fk58232hbxshan043ljgpp1qfs6xk")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "tests"))))))) + (propagated-inputs + `(("python-ipython" ,python-ipython) + ("python-py" ,python-py) + ("python-pytest" ,python-pytest))) + (native-inputs `(("python-pytest" ,python-pytest))) + (home-page "https://github.com/nokia/pytest-exploratory") + (synopsis "Interactive console for Pytest") + (description "This Pytest plugin provides an IPython extension that allows +for interactively selecting and running Pytest tests.") + (license license:expat))) + (define-public python-pytest-filter-subpackage (package (name "python-pytest-filter-subpackage") -- cgit v1.2.3