2018-11-27 20:08:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-08 19:20:42 +00:00
|
|
|
, filelock
|
2018-11-27 20:08:07 +00:00
|
|
|
, pytest
|
|
|
|
, mypy
|
2020-06-08 19:20:42 +00:00
|
|
|
, setuptools_scm
|
2018-11-27 20:08:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mypy";
|
2021-03-24 09:28:24 +00:00
|
|
|
version = "0.8.1";
|
2018-11-27 20:08:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:24 +00:00
|
|
|
sha256 = "1fa55723a4bf1d054fcba1c3bd694215a2a65cc95ab10164f5808afd893f3b11";
|
2018-11-27 20:08:07 +00:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:20:42 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2020-12-23 19:53:58 +00:00
|
|
|
|
2021-03-12 22:20:19 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ 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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dbader/pytest-mypy";
|
2018-11-27 20:08:07 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|