From c1dd42e7d64dc86b96df4aeafbc944f322cf8121 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 25 Dec 2016 11:12:04 +0100 Subject: [PATCH] pythonPackages.webencodings: init at 0.5 --- .../python-modules/webencodings/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/webencodings/default.nix diff --git a/pkgs/development/python-modules/webencodings/default.nix b/pkgs/development/python-modules/webencodings/default.nix new file mode 100644 index 000000000000..54f3517ca002 --- /dev/null +++ b/pkgs/development/python-modules/webencodings/default.nix @@ -0,0 +1,29 @@ +{ buildPythonPackage +, lib +, fetchurl +, pytest +}: + +let + pname = "webencodings"; + version = "0.5"; +in buildPythonPackage rec { + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + sha256 = "a5c55ee93b24e740fe951c37b5c228dccc1f171450e188555a775261cce1b904"; + }; + + buildInputs = [ pytest ]; + + checkPhase = '' + py.test webencodings/tests.py + ''; + + meta = { + description = "Character encoding aliases for legacy web content"; + homepage = https://github.com/SimonSapin/python-webencodings; + license = lib.licenses.bsd3; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 45fa07f619f5..47955ae0e574 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -26423,6 +26423,8 @@ EOF }; }; + webencodings = callPackage ../development/python-modules/webencodings { }; + websockets = callPackage ../development/python-modules/websockets { }; wand = buildPythonPackage rec {