overlay: Remove python overrides

This commit is contained in:
Erwin Boskma 2024-11-06 09:42:35 +01:00
parent b9811fc719
commit e75c8518b3
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw

View file

@ -1,4 +1,4 @@
final: prev: { _final: prev: {
backscrub = prev.pkgs.callPackage ../pkgs/backscrub { backscrub = prev.pkgs.callPackage ../pkgs/backscrub {
inherit (prev.pkgs) inherit (prev.pkgs)
gcc gcc
@ -26,63 +26,4 @@ final: prev: {
mapshot = prev.pkgs.callPackage ../pkgs/mapshot { }; mapshot = prev.pkgs.callPackage ../pkgs/mapshot { };
factorio = prev.factorio.override { versionsJson = ./factorio.json; }; factorio = prev.factorio.override { versionsJson = ./factorio.json; };
python312 = prev.python312.override {
packageOverrides = _pyfinal: pyprev: {
pyscard = pyprev.pyscard.overrideAttrs (_old: {
version = "2.2.0";
src = final.fetchFromGitHub {
owner = "LudovicRousseau";
repo = "pyscard";
rev = "refs/tags/2.2.0";
hash = "sha256-yZeP4Tcxnwb2My+XOsMtj+H8mNIf6JYf5tpOVUYjev0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'requires = ["setuptools","swig"]' 'requires = ["setuptools"]'
substituteInPlace setup.py --replace-fail "pkg-config" "$PKG_CONFIG"
substituteInPlace src/smartcard/scard/winscarddll.c \
--replace-fail "libpcsclite.so.1" \
"${final.lib.getLib final.pcsclite}/lib/libpcsclite${final.stdenv.hostPlatform.extensions.sharedLibrary}"
'';
preCheck = null;
disabledTests = [ ];
});
};
};
python312Packages = final.python312.pkgs;
python311 = prev.python311.override {
packageOverrides = _pyfinal: pyprev: {
pyscard = pyprev.pyscard.overrideAttrs (_old: {
version = "2.2.0";
src = final.fetchFromGitHub {
owner = "LudovicRousseau";
repo = "pyscard";
rev = "refs/tags/2.2.0";
hash = "sha256-yZeP4Tcxnwb2My+XOsMtj+H8mNIf6JYf5tpOVUYjev0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'requires = ["setuptools","swig"]' 'requires = ["setuptools"]'
substituteInPlace setup.py --replace-fail "pkg-config" "$PKG_CONFIG"
substituteInPlace src/smartcard/scard/winscarddll.c \
--replace-fail "libpcsclite.so.1" \
"${final.lib.getLib final.pcsclite}/lib/libpcsclite${final.stdenv.hostPlatform.extensions.sharedLibrary}"
'';
preCheck = null;
disabledTests = [ ];
});
};
};
python311Packages = final.python311.pkgs;
} }