2018-11-27 15:08:07 -05:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-08 12:20:42 -07:00
|
|
|
, filelock
|
2018-11-27 15:08:07 -05:00
|
|
|
, pytest
|
|
|
|
, mypy
|
2021-06-03 12:09:11 +02:00
|
|
|
, setuptools-scm
|
2018-11-27 15:08:07 -05:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mypy";
|
2021-03-24 10:28:24 +01:00
|
|
|
version = "0.8.1";
|
2018-11-27 15:08:07 -05:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 10:28:24 +01:00
|
|
|
sha256 = "1fa55723a4bf1d054fcba1c3bd694215a2a65cc95ab10164f5808afd893f3b11";
|
2018-11-27 15:08:07 -05:00
|
|
|
};
|
|
|
|
|
2021-06-03 12:09:11 +02:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-12-23 20:53:58 +01:00
|
|
|
|
2021-03-12 23:20:19 +01:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mypy filelock ];
|
2018-11-27 15:08:07 -05:00
|
|
|
|
2020-12-23 20:53:58 +01:00
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_mypy" ];
|
|
|
|
|
2018-11-27 15:08:07 -05:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mypy static type checker plugin for Pytest";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/dbader/pytest-mypy";
|
2018-11-27 15:08:07 -05:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|