Skip to content

Commit

Permalink
python312Packages.python-hglib: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Jul 29, 2024
1 parent 531e796 commit 43a5b1e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkgs/development/python-modules/python-hglib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
mercurial,
pytestCheckHook,
fetchpatch2,
setuptools,
}:

buildPythonPackage rec {
pname = "python-hglib";
version = "2.6.2";
format = "setuptools";
pyproject = true;

src = fetchzip {
url = "https://repo.mercurial-scm.org/python-hglib/archive/${version}.tar.gz";
Expand All @@ -21,16 +22,18 @@ buildPythonPackage rec {
(fetchpatch2 {
name = "remove-nose.patch";
excludes = [ "heptapod-ci.yml" ];
url = "https://repo.mercurial-scm.org/python-hglib/raw-rev/8341f2494b3f";
url = "https://repo.mercurial-scm.org/python-hglib/raw-rev/8341f2494b3fc1c0d9ee55fa4487c0ac82f64d2a";
hash = "sha256-4gicVCAH94itxHY0l8ek0L/RVhUrw2lMbbnENbWrV6U=";
})
(fetchpatch2 {
name = "fix-tests.patch";
url = "https://repo.mercurial-scm.org/python-hglib/raw-rev/a2afbf236ca8";
url = "https://repo.mercurial-scm.org/python-hglib/raw-rev/a2afbf236ca86287e72f54e1248413625d1bc405";
hash = "sha256-T/yKJ8cMMOBVk24SXwyPOoD321S1fZEIunaPJAxI0KI=";
})
];

build-system = [ setuptools ];

nativeCheckInputs = [
mercurial
pytestCheckHook
Expand All @@ -43,10 +46,10 @@ buildPythonPackage rec {

pythonImportsCheck = [ "hglib" ];

meta = with lib; {
meta = {
description = "Library with a fast, convenient interface to Mercurial. It uses Mercurial’s command server for communication with hg";
homepage = "https://www.mercurial-scm.org/wiki/PythonHglibs";
license = licenses.mit;
license = lib.licenses.mit;
maintainers = [ ];
};
}

0 comments on commit 43a5b1e

Please sign in to comment.