mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
42 lines
728 B
Nix
42 lines
728 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
setuptools-scm,
|
|
dulwich,
|
|
mercurial,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hg-git";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "hg_git";
|
|
inherit version;
|
|
hash = "sha256-Pr+rNkqBubVlsQCyqd5mdr8D357FzSd3Kuz5EWeez8M=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
dulwich
|
|
mercurial
|
|
];
|
|
|
|
pythonRelaxDeps = [ "dulwich" ];
|
|
|
|
pythonImportsCheck = [ "hggit" ];
|
|
|
|
meta = {
|
|
description = "Push and pull from a Git server using Mercurial";
|
|
homepage = "https://hg-git.github.io/";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ koral ];
|
|
};
|
|
}
|