Merge pull request #52647 from PsyanticY/pipreqs-2
pipreqs: init at 0.4.9 | pythonPackage.yarg: init at 0.1.9
This commit is contained in:
commit
77c6ca2c1a
5 changed files with 56 additions and 1 deletions
|
@ -3579,7 +3579,7 @@
|
|||
};
|
||||
psyanticy = {
|
||||
email = "iuns@outlook.fr";
|
||||
github = "Assassinkin";
|
||||
github = "PsyanticY";
|
||||
name = "Psyanticy";
|
||||
};
|
||||
puffnfresh = {
|
||||
|
|
27
pkgs/development/python-modules/yarg/default.nix
Normal file
27
pkgs/development/python-modules/yarg/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
24
pkgs/tools/misc/pipreqs/default.nix
Normal file
24
pkgs/tools/misc/pipreqs/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -4889,6 +4889,8 @@ in
|
|||
|
||||
pirate-get = callPackage ../tools/networking/pirate-get { };
|
||||
|
||||
pipreqs = callPackage ../tools/misc/pipreqs { };
|
||||
|
||||
pius = callPackage ../tools/security/pius { };
|
||||
|
||||
pixiewps = callPackage ../tools/networking/pixiewps {};
|
||||
|
|
|
@ -786,6 +786,8 @@ in {
|
|||
|
||||
WazeRouteCalculator = callPackage ../development/python-modules/WazeRouteCalculator { };
|
||||
|
||||
yarg = callPackage ../development/python-modules/yarg { };
|
||||
|
||||
# packages defined here
|
||||
|
||||
aafigure = callPackage ../development/python-modules/aafigure { };
|
||||
|
|
Loading…
Reference in a new issue