pythonPackages.txrequests: refactor move to python-modules
This commit is contained in:
parent
cf540a7e08
commit
1ab1ff4963
35
pkgs/development/python-modules/txrequests/default.nix
Normal file
35
pkgs/development/python-modules/txrequests/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, twisted
|
||||||
|
, requests
|
||||||
|
, cryptography
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "txrequests";
|
||||||
|
version = "0.9.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0kkxxd17ar5gyjkz9yrrdr15a64qw6ym60ndi0zbwx2s634yfafw";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ twisted requests cryptography ];
|
||||||
|
|
||||||
|
# Require network access
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Asynchronous Python HTTP for Humans.";
|
||||||
|
homepage = "https://github.com/tardyp/txrequests";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ nand0p ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -4290,29 +4290,7 @@ in {
|
|||||||
|
|
||||||
txgithub = callPackage ../development/python-modules/txgithub { };
|
txgithub = callPackage ../development/python-modules/txgithub { };
|
||||||
|
|
||||||
txrequests = buildPythonPackage rec {
|
txrequests = callPackage ../development/python-modules/txrequests { };
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "txrequests";
|
|
||||||
version = "0.9.2";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/t/${pname}/${name}.tar.gz";
|
|
||||||
sha256 = "0kkxxd17ar5gyjkz9yrrdr15a64qw6ym60ndi0zbwx2s634yfafw";
|
|
||||||
};
|
|
||||||
propagatedBuildInputs = with self; [ twisted requests cryptography ];
|
|
||||||
|
|
||||||
# Require network access
|
|
||||||
doCheck = false;
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -m unittest discover
|
|
||||||
'';
|
|
||||||
meta = {
|
|
||||||
description = "Asynchronous Python HTTP for Humans.";
|
|
||||||
homepage = "https://github.com/tardyp/txrequests";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ nand0p ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
txamqp = buildPythonPackage rec {
|
txamqp = buildPythonPackage rec {
|
||||||
name = "txamqp-${version}";
|
name = "txamqp-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user