nixpkgs/pkgs/development/python-modules/pyannotate/default.nix
R. RyanTM 8d4d58bd8b python37Packages.pyannotate: 1.0.7 -> 1.2.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-pyannotate/versions
2019-10-08 04:33:29 -07:00

35 lines
687 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, six
, mypy_extensions
, typing
, pytest
}:
buildPythonPackage rec {
version = "1.2.0";
pname = "pyannotate";
src = fetchPypi {
inherit pname version;
sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ six mypy_extensions ]
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
homepage = https://github.com/dropbox/pyannotate;
description = "Auto-generate PEP-484 annotations";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}