Skip to content

Commit 0ee1399

Browse files
committedDec 25, 2016
pythonPackages.webencodings: init at 0.5
The line websockets = callPackage ../development/python-modules/websockets { }; was accidentally included in the commit. (cherry picked from commit c1dd42e) (cherry picked from commit b5fcd04)
1 parent a54d84e commit 0ee1399

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{ buildPythonPackage
2+
, lib
3+
, fetchurl
4+
, pytest
5+
}:
6+
7+
let
8+
pname = "webencodings";
9+
version = "0.5";
10+
in buildPythonPackage rec {
11+
name = "${pname}-${version}";
12+
13+
src = fetchurl {
14+
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
15+
sha256 = "a5c55ee93b24e740fe951c37b5c228dccc1f171450e188555a775261cce1b904";
16+
};
17+
18+
buildInputs = [ pytest ];
19+
20+
checkPhase = ''
21+
py.test webencodings/tests.py
22+
'';
23+
24+
meta = {
25+
description = "Character encoding aliases for legacy web content";
26+
homepage = https://github.com/SimonSapin/python-webencodings;
27+
license = lib.licenses.bsd3;
28+
};
29+
}

‎pkgs/top-level/python-packages.nix

+1
Original file line numberDiff line numberDiff line change
@@ -24886,6 +24886,7 @@ in modules // {
2488624886
};
2488724887
};
2488824888

24889+
webencodings = callPackage ../development/python-modules/webencodings { };
2488924890

2489024891
wand = buildPythonPackage rec {
2489124892
name = "Wand-0.3.5";

0 commit comments

Comments
 (0)
Please sign in to comment.