depot/third_party/nixpkgs/pkgs/development/python-modules/pybrowserid/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
841 B
Nix

{
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; [ ];
};
}