2018-11-27 20:08:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-08 20:20:42 +01:00
|
|
|
, filelock
|
2018-11-27 20:08:07 +00:00
|
|
|
, pytest
|
|
|
|
, mypy
|
2020-06-08 20:20:42 +01:00
|
|
|
, setuptools_scm
|
2018-11-27 20:08:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mypy";
|
2020-11-29 14:04:39 +00:00
|
|
|
version = "0.8.0";
|
2018-11-27 20:08:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:39 +00:00
|
|
|
sha256 = "63d418a4fea7d598ac40b659723c00804d16a251d90a5cfbca213eeba5aaf01c";
|
2018-11-27 20:08:07 +00:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:20:42 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2020-12-23 19:53:58 +00:00
|
|
|
|
2020-06-08 20:20:42 +01:00
|
|
|
propagatedBuildInputs = [ pytest mypy filelock ];
|
2018-11-27 20:08:07 +00:00
|
|
|
|
2020-12-23 19:53:58 +00:00
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_mypy" ];
|
|
|
|
|
2018-11-27 20:08:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mypy static type checker plugin for Pytest";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dbader/pytest-mypy";
|
2018-11-27 20:08:07 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|