Merge pull request #201148 from tjni/pyxl3
This commit is contained in:
commit
fa65dbcefa
1 changed files with 8 additions and 15 deletions
|
@ -1,8 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, unittest2
|
, pytestCheckHook
|
||||||
, python
|
|
||||||
, isPy27
|
, isPy27
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -11,20 +10,14 @@ buildPythonPackage rec {
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "gvanrossum";
|
||||||
sha256 = "ad4cc56bf4b35def33783e6d4783882702111fe8f9a781c63228e2114067c065";
|
repo = pname;
|
||||||
|
rev = "e6588c12caee49c43faf6aa260f04d7e971f6aa8";
|
||||||
|
hash = "sha256-8nKQgwLXPVgPxNRF4CryKJb7+llDsZHis5VctxqpIRo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ unittest2 ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} tests/test_basic.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
# tests require weird codec installation
|
|
||||||
# which is not necessary for major use of package
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python 3 port of pyxl for writing structured and reusable inline HTML";
|
description = "Python 3 port of pyxl for writing structured and reusable inline HTML";
|
||||||
|
|
Loading…
Reference in a new issue