mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
python310Packages.mypy: run tests
This commit is contained in:
parent
66def2957e
commit
3937cc946a
@ -1,20 +1,30 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, typing
|
||||||
|
, python
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mypy-extensions";
|
pname = "mypy-extensions";
|
||||||
version = "0.4.3";
|
version = "0.4.3";
|
||||||
|
|
||||||
# Tests not included in pip package.
|
src = fetchFromGitHub {
|
||||||
doCheck = false;
|
owner = "python";
|
||||||
|
repo = "mypy_extensions";
|
||||||
src = fetchPypi {
|
rev = version;
|
||||||
inherit version;
|
sha256 = "sha256-JjhbxX5DBAbcs1o2fSWywz9tot792q491POXiId+NyI=";
|
||||||
pname = "mypy_extensions";
|
|
||||||
sha256 = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
|
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "mypy_extensions" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
||||||
homepage = "http://www.mypy-lang.org";
|
homepage = "http://www.mypy-lang.org";
|
||||||
|
Loading…
Reference in New Issue
Block a user