nixpkgs/pkgs/development/python-modules/ndg-httpsclient/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

37 lines
733 B
Nix

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