Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters