blob: 10346ee04cc3d6c1fe0bfab13e30892e445fb0dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
unittestCheckHook,
mock,
}:
buildPythonPackage rec {
pname = "pybrowserid";
version = "0.14.0";
pyproject = true;
src = fetchPypi {
pname = "PyBrowserID";
inherit version;
hash = "sha256-bCJ2aeh8wleWrnb2oO9lAlUoyK2C01Jnn6mj5WY6ceM=";
};
postPatch = ''
substituteInPlace browserid/tests/* \
--replace-warn 'assertEquals' 'assertEqual'
'';
build-system = [ setuptools ];
dependencies = [ requests ];
pythonImportsCheck = [ "browserid" ];
nativeCheckInputs = [
unittestCheckHook
mock
];
meta = with lib; {
description = "Python library for the BrowserID Protocol";
homepage = "https://github.com/mozilla/PyBrowserID";
license = licenses.mpl20;
maintainers = with maintainers; [ ];
};
}
|