pythonPackages.readme: refactor move to python-modules
This commit is contained in:
parent
1ecf85a4c6
commit
6680dbe4cb
37
pkgs/development/python-modules/readme/default.nix
Normal file
37
pkgs/development/python-modules/readme/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3584,32 +3584,7 @@ in {
|
|||||||
|
|
||||||
restview = callPackage ../development/python-modules/restview { };
|
restview = callPackage ../development/python-modules/restview { };
|
||||||
|
|
||||||
readme = buildPythonPackage rec {
|
readme = callPackage ../development/python-modules/readme { };
|
||||||
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_renderer = callPackage ../development/python-modules/readme_renderer { };
|
readme_renderer = callPackage ../development/python-modules/readme_renderer { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user