mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +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`.
37 lines
776 B
Nix
37 lines
776 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytest
|
|
, unittest2
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ntlm-auth";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jborean93";
|
|
repo = "ntlm-auth";
|
|
rev = "v${version}";
|
|
sha256 = "09f2g4ivfi9lh1kr30hlg0q4n2imnvmd79w83gza11q9nmhhiwpz";
|
|
};
|
|
|
|
checkInputs = [ mock pytest unittest2 ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
# Functional tests require networking
|
|
checkPhase = ''
|
|
py.test --ignore=tests/functional/test_iis.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Calculates NTLM Authentication codes";
|
|
homepage = https://github.com/jborean93/ntlm-auth;
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|