mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
9af97d3004
- disable on obsolete Python releases - add pythonImportsCheck
43 lines
749 B
Nix
43 lines
749 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mypy-extensions
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyannotate";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
mypy-extensions
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyannotate_runtime"
|
|
"pyannotate_tools"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Auto-generate PEP-484 annotations";
|
|
homepage = "https://github.com/dropbox/pyannotate";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|