Skip to content

Commit

Permalink
pythonPackages.jupytext: 1.1.7 -> 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Aug 5, 2019
1 parent 3613ce0 commit f314fdb
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions pkgs/development/python-modules/jupytext/default.nix
@@ -1,41 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, testfixtures
, pyyaml
{ lib, buildPythonPackage, fetchPypi, isPy27
, mock
, nbformat
, pytest
, pyyaml
}:

buildPythonPackage rec {
pname = "jupytext";
version = "1.1.7";
version = "1.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "0g365j22gbmq4x60l06id5930aywzy1dx2s25109nqq2l2cxc7ws";
sha256 = "05vwxgjh7pzxgdzj0775562bfps8j7w3p7dcf1zfh169whqw9vg8";
};

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

checkInputs = [
pytest
];
# setup.py checks for those even though they're not needed at runtime (only
# for tests), thus not propagated
buildInputs = [
mock
pytest
];

# requires test notebooks which are not shipped with the pypi release
# also, pypi no longer includes tests
doCheck = false;
checkPhase = ''
py.test
pytest
'';

meta = with lib; {
Expand Down

0 comments on commit f314fdb

Please sign in to comment.