My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyannotate/default.nix

34 lines
672 B

{ lib
, 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 ]
++ lib.optionals (pythonOlder "3.5") [ typing ];
checkPhase = ''
py.test
'';
meta = with lib; {
homepage = "https://github.com/dropbox/pyannotate";
description = "Auto-generate PEP-484 annotations";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}