pythonPackages.ndg-httpsclient: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 10:18:43 -04:00 committed by Frederik Rietdijk
parent 5e3aec5963
commit d7da2d4e2b
2 changed files with 31 additions and 23 deletions

View File

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pyopenssl
}:
buildPythonPackage rec {
version = "0.4.2";
pname = "ndg-httpsclient";
propagatedBuildInputs = [ pyopenssl ];
src = fetchFromGitHub {
owner = "cedadev";
repo = "ndg_httpsclient";
rev = version;
sha256 = "1kk4knv029j0cicfiv23c1rayc1n3f1j3rhl0527gxiv0qv4jw8h";
};
# uses networking
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/cedadev/ndg_httpsclient/;
description = "Provide enhanced HTTPS support for httplib and urllib2 using PyOpenSSL";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}

View File

@ -1988,29 +1988,7 @@ in {
logfury = callPackage ../development/python-modules/logfury { };
ndg-httpsclient = buildPythonPackage rec {
version = "0.4.2";
name = "ndg-httpsclient-${version}";
propagatedBuildInputs = with self; [ pyopenssl ];
src = pkgs.fetchFromGitHub {
owner = "cedadev";
repo = "ndg_httpsclient";
rev = version;
sha256 = "1kk4knv029j0cicfiv23c1rayc1n3f1j3rhl0527gxiv0qv4jw8h";
};
# uses networking
doCheck = false;
meta = {
homepage = https://github.com/cedadev/ndg_httpsclient/;
description = "Provide enhanced HTTPS support for httplib and urllib2 using PyOpenSSL";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
};
ndg-httpsclient = callPackage ../development/python-modules/ndg-httpsclient { };
netcdf4 = callPackage ../development/python-modules/netcdf4 { };