Skip to content

Commit

Permalink
python3Packages.mypy: 0.961 -> 0.971
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Sep 13, 2022
1 parent 6908700 commit 8fc2962
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions pkgs/development/python-modules/mypy/default.nix
Original file line number Diff line number Diff line change
@@ -1,50 +1,58 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, attrs
, buildPythonPackage
, filelock
, lxml
, mypy-extensions
, psutil
, py
, pytest-forked
, pytest-xdist
, pytestCheckHook
, python
, pythonOlder
, six
, typed-ast
, typing-extensions
, tomli
, types-typed-ast
, virtualenv
}:

buildPythonPackage rec {
pname = "mypy";
version = "0.961";
disabled = pythonOlder "3.6";
version = "0.971";
format = "pyproject";
disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "python";
repo = "mypy";
rev = "v${version}";
hash = "sha256-K6p73+/SeWniMSD/mP09qwqFOBr/Pqohl+PaTDVpvZI=";
rev = "refs/tags/v${version}";
hash = "sha256-J1lUnJco9rLYgFpJkfujGfVq1CfC4pdvvDzoan3jGkU=";
};

patches = [
# FIXME: Remove patch after upstream has decided the proper solution.
# https://github.com/python/mypy/pull/11143
(fetchpatch {
url = "https://github.com/python/mypy/commit/2004ae023b9d3628d9f09886cbbc20868aee8554.patch";
hash = "sha256-y+tXvgyiECO5+66YLvaje8Bz5iPvfWNIBJcsnZ2nOdI=";
})
];

buildInputs = [
nativeBuildInputs = [
types-typed-ast
];

propagatedBuildInputs = [
mypy-extensions
typing-extensions
] ++ lib.optionals (pythonOlder "3.11") [
tomli
] ++ lib.optionals (pythonOlder "3.8") [
typed-ast
typing-extensions
];

# Tests not included in pip package.
passthru.optional-dependencies = {
dmypy = [ psutil ];
reports = [ lxml ];
};

# TODO: enable tests
doCheck = false;

pythonImportsCheck = [
Expand Down

0 comments on commit 8fc2962

Please sign in to comment.