mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
Merge pull request #34642 from y0no/add_patator
pythonPackages.patator: init at 0.7
This commit is contained in:
commit
def2a2567d
24
pkgs/development/python-modules/IPy/default.nix
Normal file
24
pkgs/development/python-modules/IPy/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "IPy";
|
||||
version = "0.83";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests -e fuzz
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Class and tools for handling of IPv4 and IPv6 addresses and networks";
|
||||
homepage = "https://github.com/autocracy/python-ipy";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
21
pkgs/development/python-modules/ajpy/default.nix
Normal file
21
pkgs/development/python-modules/ajpy/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ajpy";
|
||||
version = "0.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "740e7daf728ba58dabaf4af2c4305262eb207a6e41791424a146a21396ceb9ad";
|
||||
};
|
||||
|
||||
# ajpy doesn't have tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "AJP package crafting library";
|
||||
homepage = "https://github.com/hypn0s/AJPy/";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
25
pkgs/development/python-modules/cx_oracle/default.nix
Normal file
25
pkgs/development/python-modules/cx_oracle/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, oracle-instantclient }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cx_Oracle";
|
||||
version = "6.1";
|
||||
|
||||
buildInputs = [
|
||||
oracle-instantclient
|
||||
];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "80545fc7acbdda917dd2b1604c938141256bdfed3ad464a44586c9c2f09c3004";
|
||||
};
|
||||
|
||||
# Check need an Oracle database to run
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python interface to Oracle";
|
||||
homepage = "https://oracle.github.io/python-cx_Oracle";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
25
pkgs/development/python-modules/mysqlclient/default.nix
Normal file
25
pkgs/development/python-modules/mysqlclient/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, libmysql }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mysqlclient";
|
||||
version = "1.3.12";
|
||||
|
||||
buildInputs = [
|
||||
libmysql
|
||||
];
|
||||
|
||||
# Tests need a MySQL database
|
||||
doCheck = false;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2d9ec33de39f4d9c64ad7322ede0521d85829ce36a76f9dd3d6ab76a9c8648e5";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python interface to MySQL";
|
||||
homepage = "https://github.com/PyMySQL/mysqlclient-python";
|
||||
license = licenses.gpl1;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
40
pkgs/development/python-modules/patator/default.nix
Normal file
40
pkgs/development/python-modules/patator/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, buildPythonPackage, isPy3k, fetchPypi,
|
||||
paramiko, pycurl, ajpy, pyopenssl, cx_oracle, mysqlclient,
|
||||
psycopg2, pycrypto, dnspython, ipy, pysnmp, pyasn1 }:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "patator";
|
||||
version = "0.7";
|
||||
disabled = !(isPy3k);
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "335e432e6cc591437e316ba8c1da935484ca39fc79e595ccf60ccd9166e965f1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paramiko
|
||||
pycurl
|
||||
ajpy
|
||||
pyopenssl
|
||||
cx_oracle
|
||||
mysqlclient
|
||||
psycopg2
|
||||
pycrypto
|
||||
dnspython
|
||||
ipy
|
||||
pysnmp
|
||||
pyasn1
|
||||
];
|
||||
|
||||
# No tests provided by patator
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "multi-purpose brute-forcer";
|
||||
homepage = "https://github.com/lanjelot/patator";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ y0no ];
|
||||
};
|
||||
}
|
|
@ -452,6 +452,8 @@ in {
|
|||
|
||||
aiohttp-jinja2 = callPackage ../development/python-modules/aiohttp-jinja2 { };
|
||||
|
||||
ajpy = callPackage ../development/python-modules/ajpy { };
|
||||
|
||||
alabaster = callPackage ../development/python-modules/alabaster {};
|
||||
|
||||
alembic = callPackage ../development/python-modules/alembic {};
|
||||
|
@ -1433,6 +1435,8 @@ in {
|
|||
|
||||
cx_Freeze = callPackage ../development/python-modules/cx_freeze {};
|
||||
|
||||
cx_oracle = callPackage ../development/python-modules/cx_oracle {};
|
||||
|
||||
cvxopt = buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "cvxopt";
|
||||
|
@ -8639,24 +8643,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
ipy = buildPythonPackage rec {
|
||||
version = "0.74";
|
||||
name = "ipy-${version}";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/I/IPy/IPy-${version}.tar.gz";
|
||||
sha256 = "5d6abb870c25f946c45c35cf50e66155598660f2765b35cb12e36ed5223c2b89";
|
||||
};
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Class and tools for handling of IPv4 and IPv6 addresses and networks";
|
||||
homepage = https://pypi.python.org/pypi/IPy;
|
||||
};
|
||||
};
|
||||
ipy = callPackage ../development/python-modules/IPy { };
|
||||
|
||||
ipykernel = callPackage ../development/python-modules/ipykernel { };
|
||||
|
||||
|
@ -10138,6 +10125,8 @@ in {
|
|||
|
||||
mygpoclient = callPackage ../development/python-modules/mygpoclient { };
|
||||
|
||||
mysqlclient = callPackage ../development/python-modules/mysqlclient { };
|
||||
|
||||
mwclient = buildPythonPackage rec {
|
||||
version = "0.8.3";
|
||||
pname = "mwclient";
|
||||
|
@ -11805,6 +11794,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
patator = callPackage ../development/python-modules/patator { };
|
||||
|
||||
pathlib = buildPythonPackage rec {
|
||||
name = "pathlib-${version}";
|
||||
version = "1.0.1";
|
||||
|
|
Loading…
Reference in a new issue