From ca9af55199c918174260a7bb24790aff1de3293d Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Tue, 26 Feb 2019 22:45:04 +0100 Subject: [PATCH 1/2] pythonPackages.asttokens: init at 1.1.13 --- .../python-modules/asttokens/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/asttokens/default.nix diff --git a/pkgs/development/python-modules/asttokens/default.nix b/pkgs/development/python-modules/asttokens/default.nix new file mode 100644 index 000000000000..3aba3a37c9e1 --- /dev/null +++ b/pkgs/development/python-modules/asttokens/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchPypi, buildPythonPackage, astroid, six, coverage +, lazy-object-proxy, nose, wrapt +}: + +buildPythonPackage rec { + pname = "asttokens"; + version = "1.1.13"; + + src = fetchPypi { + inherit pname version; + sha256 = "1vd4djlxmgznz84gzakkv45avnrcpgl1kir92l1pxyp0z5c0dh2m"; + }; + + propagatedBuildInputs = [ lazy-object-proxy six wrapt astroid ]; + + checkInputs = [ coverage nose ]; + + meta = with lib; { + homepage = https://github.com/gristlabs/asttokens; + description = "Annotate Python AST trees with source text and token information"; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ leenaars ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2879cf8432a0..bb188c5c7640 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -194,6 +194,8 @@ in { astroquery = callPackage ../development/python-modules/astroquery { }; + asttokens = callPackage ../development/python-modules/asttokens { }; + atom = callPackage ../development/python-modules/atom { }; augeas = callPackage ../development/python-modules/augeas { From 3cf1813ca191e5d108f766da22e07c545bae244f Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Tue, 26 Feb 2019 22:46:00 +0100 Subject: [PATCH 2/2] thonny: 3.0.5 -> 3.1.2 --- pkgs/applications/editors/thonny/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/thonny/default.nix b/pkgs/applications/editors/thonny/default.nix index ba68a5420a88..5f87aad8a871 100644 --- a/pkgs/applications/editors/thonny/default.nix +++ b/pkgs/applications/editors/thonny/default.nix @@ -1,16 +1,16 @@ -{ stdenv, fetchFromBitbucket, python3 }: +{ stdenv, fetchFromGitHub, python3 }: with python3.pkgs; buildPythonApplication rec { pname = "thonny"; - version = "3.0.5"; + version = "3.1.2"; - src = fetchFromBitbucket { - owner = "plas"; + src = fetchFromGitHub { + owner = pname; repo = pname; - rev = "e5a1ad4ae9d24066a769489b1e168b4bd6e00b03"; - sha256 = "1lrl5pj9dpw9i5ij863hd47gfd15nmvglqkl2ldwgfn7kgpsdkz5"; + rev = "v${version}"; + sha256 = "1simqqxm72k5zhavhllkinsyw8ggy6fjs5ppj82g3l5g3919pfna"; }; propagatedBuildInputs = with python3.pkgs; [ @@ -21,6 +21,7 @@ buildPythonApplication rec { pylint mypy pyperclip + asttokens ]; preInstall = ''