Skip to content

Commit

Permalink
python3Packages.jupytext: fix build by adding missing markdown-it-py …
Browse files Browse the repository at this point in the history
…dep; python3 only

Co-authored-by: Sandro <[email protected]>
Co-authored-by: Timo Kaufmann <[email protected]>
  • Loading branch information
3 people committed Dec 8, 2020
1 parent 3c9e1eb commit b2d64e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/jupytext/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, mock
, markdown-it-py
, nbformat
, pytest
, pyyaml
Expand All @@ -10,16 +10,19 @@ buildPythonPackage rec {
pname = "jupytext";
version = "1.7.1";

disabled = isPy27;

src = fetchPypi {
inherit pname version;
sha256 = "23123b90c267c67716fe6a022dfae49b84fd3809370d83211f2920eb3106bf40";
};

propagatedBuildInputs = [
pyyaml
markdown-it-py
nbformat
pyyaml
toml
] ++ lib.optionals isPy27 [ mock ]; # why they put it in install_requires, who knows
];

checkInputs = [
pytest
Expand Down
4 changes: 1 addition & 3 deletions pkgs/development/python-modules/markdown-it-py/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, attrs
, coverage
, psutil
, pytest
, pytest-benchmark
}:

Expand All @@ -25,7 +24,6 @@ buildPythonPackage rec {
coverage
pytest-benchmark
psutil
pytest
pytestCheckHook
];

Expand All @@ -42,7 +40,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Markdown parser done right";
homepage = "https://markdown-it-py.readthedocs.io/en/latest";
changelog = "https://github.com/executablebooks/markdown-it-py/blob/master/CHANGELOG.md";
changelog = "https://github.com/executablebooks/markdown-it-py/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ bhipple ];
};
Expand Down

0 comments on commit b2d64e2

Please sign in to comment.