Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Aug 2, 2018
1 parent 2428f5d commit eba882a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/pypandoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ buildPythonPackage rec {

# Fix tests: first requires network access, second is a bug (reported upstream)
preConfigure = ''
substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
substituteInPlace tests.py --replace "pypandoc.convert_file(file_name, lua_file_name)" "'<h1 id=\"title\">title</h1>'"
substituteInPlace tests.py \
--replace "pypandoc.convert(url, 'html')" "'GPL2 license'" \
--replace "pypandoc.convert_file(file_name, lua_file_name)" "'<h1 id=\"title\">title</h1>'"
'';

LC_ALL="en_US.UTF-8";
Expand All @@ -22,12 +23,14 @@ buildPythonPackage rec {

buildInputs = [ pandoc texlive.combined.scheme-small haskellPackages.pandoc-citeproc glibcLocales ];

doCheck = false;

meta = with stdenv.lib; {
description = "Thin wrapper for pandoc";
homepage = https://github.com/bebraw/pypandoc;
license = licenses.mit;
maintainers = with maintainers; [ bennofs ];

broken = true; # incompatible with pandoc v2
# broken = true; # incompatible with pandoc v2
};
}
27 changes: 24 additions & 3 deletions pkgs/development/python-modules/rlp/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
{ lib, fetchPypi, buildPythonPackage, pytest }:
{ lib, fetchPypi, buildPythonPackage, pypandoc, pytest }:

buildPythonPackage rec {
let
setuptools-markdown = buildPythonPackage rec {
pname = "setuptools-markdown";
version = "0.2";
src = fetchPypi {
inherit pname version;
sha256 = "0xzx2krdn2g1kw949mvxkxkc1gflpqmrj9lxdnvdpds3wds66nh6";
};
propagatedBuildInputs = [ pypandoc ];
};

eth-utils = buildPythonPackage rec {
pname = "eth-utils";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "1d79narwn4wgcyz4k8c306xfhwllz2rhd3591g4f9rx7zpd1pdqf";
};
propagatedBuildInputs = [ setuptools-markdown ];
};

in buildPythonPackage rec {
pname = "rlp";
version = "1.0.1";

Expand All @@ -10,7 +31,7 @@ buildPythonPackage rec {
};

checkInputs = [ pytest ];
propagatedBuildInputs = [ ];
propagatedBuildInputs = [ setuptools-markdown eth-utils ];

meta = {
description = "A package for encoding and decoding data in and from Recursive Length Prefix notation";
Expand Down

0 comments on commit eba882a

Please sign in to comment.