pythonPackages.readme: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 12:10:48 -04:00 committed by Frederik Rietdijk
parent 1ecf85a4c6
commit 6680dbe4cb
2 changed files with 38 additions and 26 deletions

View File

@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, six
, docutils
, pygments
, bleach
, html5lib
}:
buildPythonPackage rec {
pname = "readme";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "08j2w67nilczn1i5r7h22vag9673i6vnfhyq2rv27r1bdmi5a30m";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ six docutils pygments bleach html5lib ];
checkPhase = ''
py.test
'';
# Tests fail, possibly broken.
doCheck = false;
meta = with stdenv.lib; {
description = "Readme is a library for rendering readme descriptions for Warehouse";
homepage = "https://github.com/pypa/readme";
license = licenses.asl20;
};
}

View File

@ -3584,32 +3584,7 @@ in {
restview = callPackage ../development/python-modules/restview { };
readme = buildPythonPackage rec {
name = "readme-${version}";
version = "0.6.0";
src = pkgs.fetchurl {
url = "mirror://pypi/r/readme/readme-${version}.tar.gz";
sha256 = "08j2w67nilczn1i5r7h22vag9673i6vnfhyq2rv27r1bdmi5a30m";
};
buildInputs = with self; [ pytest ];
propagatedBuildInputs = with self; [
six docutils pygments bleach html5lib
];
checkPhase = ''
py.test
'';
# Tests fail, possibly broken.
doCheck = false;
meta = with stdenv.lib; {
description = "Readme";
homepage = "https://github.com/pypa/readme";
};
};
readme = callPackage ../development/python-modules/readme { };
readme_renderer = callPackage ../development/python-modules/readme_renderer { };