Support for deadnix pre-commit check

This commit is contained in:
Greg Hellings
2024-10-03 15:21:56 -05:00
parent 78c802d32c
commit 229188214f
46 changed files with 50 additions and 85 deletions
+2 -9
View File
@@ -16,13 +16,6 @@ let
];
myPython = prev.python312.withPackages myPackages;
macOver = file: og:
if prev.stdenv.isDarwin then
(prev.callPackage file { }) else
prev."${og}";
buildFirefoxXpiAddon = final.nur.repos.rycee.lib.buildFirefoxXpiAddon;
is2405 = prev.lib.versionAtLeast prev.lib.version "24";
in
@@ -31,7 +24,7 @@ rec {
## Testing adding python packages in the correct manner
pythonPackagesExtensions = (prev.pythonPackagesExtensions or [ ]) ++ [
(python-final: python-prev:
(python-final: _:
let cp = python-final.callPackage; in {
django-rapyd-modernauth = cp ./django-rapyd-modernauth.nix { };
graypy = cp ./graypy.nix { };
@@ -58,7 +51,7 @@ rec {
brew = prev.callPackage ./homebrew.nix { };
copier = (if is2405 then
prev.copier.overridePythonAttrs
(old: {
(_: {
version = "9.1.0";
src = final.fetchFromGitHub {
owner = "copier-org";
-11
View File
@@ -10,17 +10,6 @@
, zipp
}:
let
pydeps = pypkgs: with pypkgs; [
click
django
python-dotenv
pytz
setuptools
sqlparse
zipp
];
in
buildPythonPackage rec {
pname = "django-rapyd-modernauth";
version = "0.0.4";
-4
View File
@@ -3,10 +3,6 @@
flake-utils.lib.eachDefaultSystemMap (system:
let
pkgs = (import nixunstable { inherit system; });
lib = pkgs.lib;
callPackage = pkgs.lib.callPackageWith pkgs;
python = pkgs.packages.python3;
cp = pkgs.packages.python3.pkgs.callPackage;
in
{
hms = pkgs.callPackage ./hms.nix {