From 995d4b256e9b086db49bd311569f8b00afe1d5e1 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Thu, 18 Jul 2019 18:41:03 -0400 Subject: [PATCH] pythonPackages.python-openid: init at 2.2.5 --- .../python-modules/python-openid/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/python-openid/default.nix diff --git a/pkgs/development/python-modules/python-openid/default.nix b/pkgs/development/python-modules/python-openid/default.nix new file mode 100644 index 000000000000..24523512e276 --- /dev/null +++ b/pkgs/development/python-modules/python-openid/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, isPy27 +, nose +}: + +buildPythonPackage rec { + pname = "python-openid"; + version = "2.2.5"; + disabled = !isPy27; + + src = fetchFromGitHub { + owner = "openid"; + repo = pname; + rev = version; + sha256 = "198800ka2xyjz4yi2zm23l2a0knmqzxb4wj1nhqps70jz8mwg5mz"; + }; + + checkInputs = [ + nose + ]; + + checkPhase = '' + nosetests + ''; + + # most tests require network access + doCheck = false; + + meta = with lib; { + description = "OpenID support for servers and consumers"; + homepage = https://github.com/openid/python-openid; + license = licenses.asl20; + maintainers = with maintainers; [ costrouc ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2d0c3372d089..d665e931a3a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1151,6 +1151,8 @@ in { python3-openid = callPackage ../development/python-modules/python3-openid { }; + python-openid = callPackage ../development/python-modules/python-openid { }; + python-packer = callPackage ../development/python-modules/python-packer { }; python-periphery = callPackage ../development/python-modules/python-periphery { };