pythonPackages.testpath: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 11:24:29 -04:00
parent 8a9d7350d8
commit f8e0efb139
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 23 additions and 28 deletions

@ -0,0 +1,22 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "testpath";
version = "0.3";
format = "wheel";
src = fetchPypi {
inherit pname version format;
sha256 = "f16b2cb3b03e1ada4fb0200b265a4446f92f3ba4b9d88ace34f51c54ab6d294e";
};
meta = with stdenv.lib; {
description = "Test utilities for code working with files and commands";
license = licenses.mit;
homepage = https://github.com/jupyter/testpath;
};
}

@ -3949,34 +3949,7 @@ in {
testscenarios = callPackage ../development/python-modules/testscenarios { }; testscenarios = callPackage ../development/python-modules/testscenarios { };
testpath = buildPythonPackage rec { testpath = callPackage ../development/python-modules/testpath { };
pname = "testpath";
version = "0.3";
name = "${pname}-${version}";
#format = "flit";
#src = pkgs.fetchFromGitHub {
# owner = "jupyter";
# repo = pname;
# rev = "${version}";
# sha256 = "1ghzmkrsrk9xrj42pjsq5gl7v3g2v0ji0xy0xzzxp5aizd3wrvl9";
#};
#doCheck = true;
#checkPhase = ''
# ${python.interpreter} -m unittest discover
#'';
format = "wheel";
src = fetchPypi {
inherit pname version format;
sha256 = "f16b2cb3b03e1ada4fb0200b265a4446f92f3ba4b9d88ace34f51c54ab6d294e";
};
meta = {
description = "Test utilities for code working with files and commands";
license = licenses.mit;
homepage = https://github.com/jupyter/testpath;
};
};
testrepository = buildPythonPackage rec { testrepository = buildPythonPackage rec {
name = "testrepository-${version}"; name = "testrepository-${version}";