mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
30 lines
645 B
Nix
30 lines
645 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ntlm-auth
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests_ntlm";
|
|
version = "1.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9189c92e8c61ae91402a64b972c4802b2457ce6a799d658256ebf084d5c7eb71";
|
|
};
|
|
|
|
propagatedBuildInputs = [ ntlm-auth requests ];
|
|
|
|
# Tests require networking
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "HTTP NTLM authentication support for python-requests";
|
|
homepage = https://github.com/requests/requests-ntlm;
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|