python3Packages.path: rename from path.py; 12.0.1 -> 16.4.0
The project had been renamed after 12.5.0 back in 2020, which is why we didn't receive further updates. Created an alias and renamed all existing references.
This commit is contained in:
parent
8aaa019221
commit
5ee7d17afc
@ -27,7 +27,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
|
||||
pyparsing
|
||||
pyqtgraph
|
||||
spyder
|
||||
pathpy
|
||||
path
|
||||
qtconsole
|
||||
requests
|
||||
];
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, buildPythonApplication, python
|
||||
, pytestCheckHook, mock, pathpy, pyhamcrest, pytest-html
|
||||
, pytestCheckHook, mock, path, pyhamcrest, pytest-html
|
||||
, glibcLocales
|
||||
, colorama, cucumber-tag-expressions, parse, parse-type, six
|
||||
}:
|
||||
@ -16,7 +16,7 @@ buildPythonApplication rec {
|
||||
hash = "sha256-B8PUN1Q4UAsDWrHjPZDlpaPjCKjI/pAogCSI+BQnaWs=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook mock pathpy pyhamcrest pytest-html ];
|
||||
checkInputs = [ pytestCheckHook mock path pyhamcrest pytest-html ];
|
||||
|
||||
# upstream tests are failing, so instead we only check if we can import it
|
||||
doCheck = false;
|
||||
|
@ -6,7 +6,7 @@
|
||||
, jaraco_collections
|
||||
, more-itertools
|
||||
, objgraph
|
||||
, pathpy
|
||||
, path
|
||||
, portend
|
||||
, pytest-forked
|
||||
, pytest-services
|
||||
@ -51,7 +51,7 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [
|
||||
objgraph
|
||||
pathpy
|
||||
path
|
||||
pytest-forked
|
||||
pytest-services
|
||||
pytestCheckHook
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytestCheckHook }:
|
||||
{ lib, buildPythonPackage, fetchPypi, EasyProcess, path, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "entrypoint2";
|
||||
@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "entrypoint2" ];
|
||||
|
||||
checkInputs = [ EasyProcess pathpy pytestCheckHook ];
|
||||
checkInputs = [ EasyProcess path pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy to use command-line interface for python modules";
|
||||
|
@ -4,7 +4,7 @@
|
||||
, zetup
|
||||
, six
|
||||
, moretools
|
||||
, pathpy
|
||||
, path
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ zetup ];
|
||||
|
||||
propagatedBuildInputs = [ six moretools pathpy ];
|
||||
propagatedBuildInputs = [ six moretools path ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, six, pathpy, zetup, pytest
|
||||
, six, path, zetup, pytest
|
||||
, decorator }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ zetup ];
|
||||
checkInputs = [ six pathpy pytest ];
|
||||
checkInputs = [ six path pytest ];
|
||||
propagatedBuildInputs = [ decorator ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -1,50 +0,0 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools-scm
|
||||
, pytestCheckHook
|
||||
, pytest-flake8
|
||||
, glibcLocales
|
||||
, packaging
|
||||
, isPy38
|
||||
, importlib-metadata
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "path.py";
|
||||
version = "12.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook pytest-flake8 glibcLocales packaging ];
|
||||
buildInputs = [ setuptools-scm ];
|
||||
propagatedBuildInputs = [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
meta = {
|
||||
description = "A module wrapper for os.path";
|
||||
homepage = "https://github.com/jaraco/path.py";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
|
||||
# ignore performance test which may fail when the system is under load
|
||||
# test_version fails with 3.8 https://github.com/jaraco/path.py/issues/172
|
||||
disabledTests = [ "TestPerformance" ] ++ lib.optionals isPy38 [ "test_version"];
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/jaraco/path.py/commit/02eb16f0eb2cdc0015972ce963357aaa1cd0b84b.patch";
|
||||
sha256 = "0bqa8vjwil7jn35a6984adcm24pvv3pjkhszv10qv6yr442d1mk9";
|
||||
})
|
||||
];
|
||||
|
||||
}
|
45
pkgs/development/python-modules/path/default.nix
Normal file
45
pkgs/development/python-modules/path/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
|
||||
# build time
|
||||
, setuptools-scm
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, appdirs
|
||||
, packaging
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "path";
|
||||
version = "16.4.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-uvLnV8Sxm+ggj55n5I+0dbSld9VhNZDORmk7298IL1I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"path"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Object-oriented file system path manipulation";
|
||||
homepage = "https://github.com/jaraco/path";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pathpy
|
||||
, path
|
||||
, pathlib2
|
||||
, pythonOlder
|
||||
}:
|
||||
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
sha256 = "87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pathpy ]
|
||||
propagatedBuildInputs = [ path ]
|
||||
++ lib.optional (pythonOlder "3.4") pathlib2;
|
||||
|
||||
# No proper test suite
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ lib, isPyPy, buildPythonPackage, fetchPypi
|
||||
, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, pathpy, execnet
|
||||
, pytest, cmdline, pytest-cov, coverage, setuptools-git, mock, path, execnet
|
||||
, contextlib2, termcolor }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
checkInputs = [ cmdline pytest ];
|
||||
propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock pathpy execnet contextlib2 termcolor ];
|
||||
propagatedBuildInputs = [ pytest-cov coverage setuptools-git mock path execnet contextlib2 termcolor ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
|
||||
|
@ -3,7 +3,7 @@
|
||||
, fetchPypi
|
||||
, robotframework
|
||||
, moretools
|
||||
, pathpy
|
||||
, path
|
||||
, six
|
||||
, zetup
|
||||
, modeled
|
||||
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
robotframework
|
||||
moretools
|
||||
pathpy
|
||||
path
|
||||
six
|
||||
modeled
|
||||
];
|
||||
|
@ -12,7 +12,7 @@
|
||||
, cython
|
||||
, flake8
|
||||
, ninja
|
||||
, pathpy
|
||||
, path
|
||||
, pytest
|
||||
, pytest-cov
|
||||
, pytest-mock
|
||||
@ -45,7 +45,7 @@ buildPythonPackage rec {
|
||||
cython
|
||||
flake8
|
||||
ninja
|
||||
pathpy
|
||||
path
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-mock
|
||||
|
@ -2,7 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nbconvert
|
||||
, pathpy
|
||||
, path
|
||||
, pytestCheckHook
|
||||
, setuptools-scm
|
||||
, pythonAtLeast
|
||||
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ setuptools-scm ];
|
||||
|
||||
checkInputs = [
|
||||
pathpy
|
||||
path
|
||||
nbconvert
|
||||
pytestCheckHook
|
||||
];
|
||||
|
@ -82,6 +82,7 @@ mapAliases ({
|
||||
nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16
|
||||
pam = python-pam; # added 2020-09-07.
|
||||
PasteDeploy = pastedeploy; # added 2021-10-07
|
||||
pathpy = path; # added 2022-04-12
|
||||
powerlineMemSegment = powerline-mem-segment; # added 2021-10-08
|
||||
privacyidea = throw "privacyidea has been renamed to pkgs.privacyidea"; # added 2021-06-20
|
||||
prometheus_client = prometheus-client; # added 2021-06-10
|
||||
|
@ -6017,6 +6017,8 @@ in {
|
||||
|
||||
patch-ng = callPackage ../development/python-modules/patch-ng { };
|
||||
|
||||
path = callPackage ../development/python-modules/path { };
|
||||
|
||||
path-and-address = callPackage ../development/python-modules/path-and-address { };
|
||||
|
||||
pathable = callPackage ../development/python-modules/pathable { };
|
||||
@ -6027,8 +6029,6 @@ in {
|
||||
|
||||
pathos = callPackage ../development/python-modules/pathos { };
|
||||
|
||||
pathpy = callPackage ../development/python-modules/path.py { };
|
||||
|
||||
pathspec = callPackage ../development/python-modules/pathspec { };
|
||||
|
||||
pathtools = callPackage ../development/python-modules/pathtools { };
|
||||
|
Loading…
Reference in New Issue
Block a user