mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #260849 from natsukium/hglib/remove
python311Packages.hglib: remove
This commit is contained in:
commit
d6c2a45122
@ -3,7 +3,7 @@
|
||||
, buildGoModule
|
||||
, buildPythonPackage
|
||||
, srht
|
||||
, hglib
|
||||
, python-hglib
|
||||
, scmsrht
|
||||
, unidiff
|
||||
, python
|
||||
@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
srht
|
||||
hglib
|
||||
python-hglib
|
||||
scmsrht
|
||||
unidiff
|
||||
];
|
||||
|
@ -1,43 +0,0 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch, substituteAll, python, nose, mercurial }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-hglib";
|
||||
version = "2.6.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7c1fa0cb4d332dd6ec8409b04787ceba4623e97fb378656f7cab0b996c6ca3b2";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./hgpath.patch;
|
||||
hg = "${mercurial}/bin/hg";
|
||||
})
|
||||
|
||||
# These two patches are needed to fix the tests.
|
||||
# They will need to be removed on the next update.
|
||||
(fetchpatch {
|
||||
url = "https://www.mercurial-scm.org/repo/python-hglib/raw-rev/12e6aaef0f6e";
|
||||
sha256 = "159pmhy23gqcc6rkh5jrni8fba4xbhxwcc0jf02wqr7f82kv8a7x";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://www.mercurial-scm.org/repo/python-hglib/raw-rev/1a318162f06f";
|
||||
sha256 = "04lxfc15m3yw5kvp133xg8zv09l8kndi146xk3lnbbm07fgcnn1z";
|
||||
})
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} test.py --with-hg "${mercurial}/bin/hg" -v
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mercurial Python library";
|
||||
homepage = "http://selenic.com/repo/python-hglib";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dfoxfranke ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
diff -r 2d0ec6097d78 hglib/__init__.py
|
||||
--- a/hglib/__init__.py Mon Apr 30 15:43:29 2018 +0900
|
||||
+++ b/hglib/__init__.py Tue Mar 19 23:30:01 2019 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
import subprocess
|
||||
from hglib import client, util, error
|
||||
|
||||
-HGPATH = 'hg'
|
||||
+HGPATH = '@hg@'
|
||||
|
||||
def open(path=None, encoding=None, configs=None):
|
||||
'''starts a cmdserver for the given path (or for a repository found
|
||||
diff -r 2d0ec6097d78 tests/common.py
|
||||
--- a/tests/common.py Mon Apr 30 15:43:29 2018 +0900
|
||||
+++ b/tests/common.py Tue Mar 19 23:30:01 2019 +0100
|
||||
@@ -26,7 +26,7 @@
|
||||
os.mkdir(self._testtmp)
|
||||
os.chdir(self._testtmp)
|
||||
# until we can run norepo commands in the cmdserver
|
||||
- os.system('hg init')
|
||||
+ os.system('@hg@ init')
|
||||
self.client = hglib.open()
|
||||
|
||||
def tearDown(self):
|
@ -3,7 +3,7 @@
|
||||
, buildPythonPackage
|
||||
, socat
|
||||
, psutil
|
||||
, hglib
|
||||
, python-hglib
|
||||
, pygit2
|
||||
, pyuv
|
||||
, i3ipc
|
||||
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
socat
|
||||
psutil
|
||||
hglib
|
||||
python-hglib
|
||||
pygit2
|
||||
pyuv
|
||||
] ++ lib.optionals (!stdenv.isDarwin) [ i3ipc ];
|
||||
|
@ -177,6 +177,7 @@ mapAliases ({
|
||||
hangups = throw "hangups was removed because Google Hangouts has been shut down"; # added 2023-02-13
|
||||
hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
|
||||
hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
|
||||
hglib = python-hglib; # added 2023-10-13
|
||||
HTSeq = htseq; # added 2023-02-19
|
||||
hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29
|
||||
ihatemoney = throw "ihatemoney was removed because it is no longer maintained downstream"; # added 2023-04-08
|
||||
|
@ -4933,8 +4933,6 @@ self: super: with self; {
|
||||
|
||||
hg-git = callPackage ../development/python-modules/hg-git { };
|
||||
|
||||
hglib = callPackage ../development/python-modules/hglib { };
|
||||
|
||||
hickle = callPackage ../development/python-modules/hickle { };
|
||||
|
||||
hid = callPackage ../development/python-modules/hid {
|
||||
|
Loading…
Reference in New Issue
Block a user