4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
27 lines
773 B
Nix
27 lines
773 B
Nix
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, sphinx }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hieroglyph";
|
|
version = "2.1.0";
|
|
disabled = isPy27; # python2 compatible sphinx is too low
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b4b5db13a9d387438e610c2ca1d81386ccd206944d9a9dd273f21874486cddaf";
|
|
};
|
|
|
|
propagatedBuildInputs = [ sphinx ];
|
|
|
|
# all tests fail; don't know why:
|
|
# test_absolute_paths_made_relative (hieroglyph.tests.test_path_fixing.PostProcessImageTests) ... ERROR
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Generate HTML presentations from plain text sources";
|
|
homepage = "https://github.com/nyergler/hieroglyph/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ juliendehos ];
|
|
};
|
|
}
|
|
|