mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
commit
03504f0150
4 changed files with 24 additions and 7 deletions
16
pkgs/development/python-modules/typed-ast/default.nix
Normal file
16
pkgs/development/python-modules/typed-ast/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ buildPythonPackage, fetchzip, isPy3k, lib, pythonOlder }:
|
||||
buildPythonPackage rec {
|
||||
name = "typed-ast-${version}";
|
||||
version = "1.0.1";
|
||||
src = fetchzip {
|
||||
url = "mirror://pypi/t/typed-ast/${name}.zip";
|
||||
sha256 = "1q69czr9ghnbd81hay71kgynn6mqi5nsgand9yw6dyw5bim5l154";
|
||||
};
|
||||
# Only works with Python 3.3 and newer;
|
||||
disabled = !isPy3k && !(pythonOlder "3.3");
|
||||
meta = {
|
||||
homepage = "https://pypi.python.org/pypi/typed-ast";
|
||||
description = "a fork of Python 2 and 3 ast modules with type comment support";
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -1,18 +1,17 @@
|
|||
{ stdenv, fetchurl, python35Packages }:
|
||||
|
||||
python35Packages.buildPythonApplication rec {
|
||||
name = "mypy-lang-${version}";
|
||||
version = "0.4.5";
|
||||
name = "mypy-${version}";
|
||||
version = "0.501";
|
||||
|
||||
# Tests not included in pip package.
|
||||
doCheck = false;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/m/mypy-lang/${name}.tar.gz";
|
||||
sha256 = "0x1n6r5in57zv4s75r22smpqxrz7xxp84fnrhkwzbpjnafa3y81f";
|
||||
url = "mirror://pypi/m/mypy/${name}.tar.gz";
|
||||
sha256 = "164g3dq2vzxa53n9lgvmbapg41qiwcxk1w9mvzmnqksvql5vm60h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python35Packages; [ lxml ];
|
||||
propagatedBuildInputs = with python35Packages; [ lxml typed-ast ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Optional static typing for Python";
|
|
@ -6907,7 +6907,7 @@ with pkgs;
|
|||
|
||||
grabserial = callPackage ../development/tools/grabserial { };
|
||||
|
||||
mypy-lang = callPackage ../development/tools/mypy-lang { };
|
||||
mypy = callPackage ../development/tools/mypy { };
|
||||
|
||||
|
||||
### DEVELOPMENT / LIBRARIES
|
||||
|
|
|
@ -32038,6 +32038,8 @@ EOF
|
|||
};
|
||||
};
|
||||
|
||||
typed-ast = callPackage ../development/python-modules/typed-ast { };
|
||||
|
||||
stripe = buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "stripe";
|
||||
|
|
Loading…
Reference in a new issue