From 2581d044fb06675ad28bce9c76c48c1010afa2a6 Mon Sep 17 00:00:00 2001 From: "nagato.pain" Date: Fri, 21 Dec 2018 13:29:47 -0800 Subject: [PATCH 1/3] maintainers: update psyanticy's github --- maintainers/maintainer-list.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5d77f75c65c9..4f8167f0a009 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3505,7 +3505,7 @@ }; psyanticy = { email = "iuns@outlook.fr"; - github = "Assassinkin"; + github = "PsyanticY"; name = "Psyanticy"; }; puffnfresh = { From 14840a99b14fd90c3d5cf0216ee95fc8f25000fa Mon Sep 17 00:00:00 2001 From: "nagato.pain" Date: Fri, 21 Dec 2018 14:05:00 -0800 Subject: [PATCH 2/3] pythonPackages.yarg: init at 0.1.9 --- .../python-modules/yarg/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/yarg/default.nix diff --git a/pkgs/development/python-modules/yarg/default.nix b/pkgs/development/python-modules/yarg/default.nix new file mode 100644 index 000000000000..f49ed20b2b92 --- /dev/null +++ b/pkgs/development/python-modules/yarg/default.nix @@ -0,0 +1,27 @@ +{ lib, buildPythonPackage, fetchFromGitHub, requests, nose, mock }: + +buildPythonPackage rec { + pname = "yarg"; + version = "0.1.9"; + + src = fetchFromGitHub { + owner = "kura"; + repo = pname; + rev = version; + sha256 = "1isq02s404fp9whkm8w2kvb2ik1sz0r258iby0q532zw81lga0d0"; + }; + + propagatedBuildInputs = [ requests ]; + + checkInputs = [ nose mock ]; + checkPhase = '' + nosetests + ''; + + meta = with lib; { + description = "An easy to use PyPI client"; + homepage = https://yarg.readthedocs.io; + license = licenses.mit; + maintainers = with maintainers; [ psyanticy ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 76fda7c140f5..feebec23f18e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -748,6 +748,8 @@ in { WazeRouteCalculator = callPackage ../development/python-modules/WazeRouteCalculator { }; + yarg = callPackage ../development/python-modules/yarg { }; + # packages defined here aafigure = callPackage ../development/python-modules/aafigure { }; From 709c6c46b933a5c344dd43314c0996f5172e2cdf Mon Sep 17 00:00:00 2001 From: "nagato.pain" Date: Fri, 21 Dec 2018 14:11:12 -0800 Subject: [PATCH 3/3] pipreqs: init at 0.4.9 --- pkgs/tools/misc/pipreqs/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/misc/pipreqs/default.nix diff --git a/pkgs/tools/misc/pipreqs/default.nix b/pkgs/tools/misc/pipreqs/default.nix new file mode 100644 index 000000000000..15c5cbc0eb11 --- /dev/null +++ b/pkgs/tools/misc/pipreqs/default.nix @@ -0,0 +1,24 @@ +{ lib, python2Packages }: + +# Using python 2 because when packaging with python 3 pipreqs fails to parse python 2 code. +python2Packages.buildPythonApplication rec { + pname = "pipreqs"; + version = "0.4.9"; + + src = python2Packages.fetchPypi { + inherit pname version; + sha256 = "cec6eecc4685967b27eb386037565a737d036045f525b9eb314631a68d60e4bc"; + }; + + propagatedBuildInputs = with python2Packages; [ yarg docopt ]; + + # Tests requires network access. Works fine without sandboxing + doCheck = false; + + meta = with lib; { + description = "Generate requirements.txt file for any project based on imports"; + homepage = https://github.com/bndr/pipreqs; + license = licenses.asl20; + maintainers = with maintainers; [ psyanticy ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ba9ac670cd5..965dd133e33b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4857,6 +4857,8 @@ with pkgs; pirate-get = callPackage ../tools/networking/pirate-get { }; + pipreqs = callPackage ../tools/misc/pipreqs { }; + pius = callPackage ../tools/security/pius { }; pixiewps = callPackage ../tools/networking/pixiewps {};