IVR Python updates
This commit is contained in:
+13
-4
@@ -10,6 +10,7 @@ let
|
|||||||
flake8
|
flake8
|
||||||
ipython
|
ipython
|
||||||
jedi
|
jedi
|
||||||
|
jedi-language-server
|
||||||
mypy
|
mypy
|
||||||
pylint
|
pylint
|
||||||
pyyaml
|
pyyaml
|
||||||
@@ -48,14 +49,19 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
#python3 = final.unstable.python3;
|
|
||||||
gregpy = myPython;
|
gregpy = myPython;
|
||||||
|
|
||||||
|
## Testing adding python packages in the correct manner
|
||||||
|
pythonPackagesExtensions = (prev.pythonPackagesExtensions or []) ++ [
|
||||||
|
(python-final: python-prev: {
|
||||||
|
django-rapyd-modernauth = python-final.callPackage ./django-rapyd-modernauth.nix {};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
my-py-addons = rec {
|
my-py-addons = rec {
|
||||||
copier = cp ./copier.nix {
|
copier = cp ./copier.nix {
|
||||||
inherit iteration-utilities
|
inherit iteration-utilities
|
||||||
jinja2-ansible-filters
|
jinja2-ansible-filters
|
||||||
pydantic
|
|
||||||
pyyaml-include
|
pyyaml-include
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
@@ -71,8 +77,8 @@ in rec {
|
|||||||
molecule-podman = cp ./molecule-podman.nix {
|
molecule-podman = cp ./molecule-podman.nix {
|
||||||
inherit molecule;
|
inherit molecule;
|
||||||
};
|
};
|
||||||
pydantic = cp ./pydantic.nix {};
|
|
||||||
pyyaml-include = cp ./pyyaml-include.nix {};
|
pyyaml-include = cp ./pyyaml-include.nix {};
|
||||||
|
xonsh-apipenv = cp ./xonsh-apipenv.nix {};
|
||||||
xonsh-direnv = cp ./xonsh-direnv.nix {};
|
xonsh-direnv = cp ./xonsh-direnv.nix {};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -89,7 +95,10 @@ in rec {
|
|||||||
|
|
||||||
xonsh = prev.xonsh.overridePythonAttrs (old: rec{
|
xonsh = prev.xonsh.overridePythonAttrs (old: rec{
|
||||||
python3 = final.gregpy;
|
python3 = final.gregpy;
|
||||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ my-py-addons.xonsh-direnv ];
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||||
|
my-py-addons.xonsh-apipenv
|
||||||
|
my-py-addons.xonsh-direnv
|
||||||
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
bitwarden = macOver ./mac/bitwarden.nix "bitwarden";
|
bitwarden = macOver ./mac/bitwarden.nix "bitwarden";
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, pkgs}:
|
||||||
|
|
||||||
|
let
|
||||||
|
pydeps = pypkgs: with pypkgs; [
|
||||||
|
click
|
||||||
|
django
|
||||||
|
python-dotenv
|
||||||
|
pytz
|
||||||
|
setuptools
|
||||||
|
sqlparse
|
||||||
|
zipp
|
||||||
|
];
|
||||||
|
in buildPythonPackage rec {
|
||||||
|
pname = "django-rapyd-modernauth";
|
||||||
|
version = "0.0.4";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-kDZjI32LcKsmLI38ruINKOUfi6lWTIqXF5qIQHi0LeQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Django application that provides a custom User model where the username is the email address.";
|
||||||
|
homepage = "https://github.com/karthicraghupathi/django_rapyd_modernauth";
|
||||||
|
license = licenses.afl20;
|
||||||
|
maintainers = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
#(python3.withPackages pydeps)
|
||||||
|
click
|
||||||
|
django
|
||||||
|
python-dotenv
|
||||||
|
pytz
|
||||||
|
setuptools
|
||||||
|
sqlparse
|
||||||
|
zipp
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
#(python3.withPackages pydeps)
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -14,6 +14,10 @@ flake-utils.lib.eachDefaultSystemMap (system:
|
|||||||
|
|
||||||
brew = pkgs.callPackage ./homebrew.nix {};
|
brew = pkgs.callPackage ./homebrew.nix {};
|
||||||
|
|
||||||
|
django-rapyd-modernauth = pkgs.callPackage ./django-rapyd-modernauth.nix {
|
||||||
|
buildPythonPackage = pkgs.python3.pkgs.buildPythonPackage;
|
||||||
|
};
|
||||||
|
|
||||||
xonsh-direnv = pkgs.callPackage ./xonsh-direnv.nix {
|
xonsh-direnv = pkgs.callPackage ./xonsh-direnv.nix {
|
||||||
buildPythonPackage = pkgs.python3.pkgs.buildPythonPackage;
|
buildPythonPackage = pkgs.python3.pkgs.buildPythonPackage;
|
||||||
fetchPypi = pkgs.python.pkgs.fetchPypi;
|
fetchPypi = pkgs.python.pkgs.fetchPypi;
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pkgs,
|
|
||||||
typing-extensions
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
pydeps = [
|
|
||||||
typing-extensions
|
|
||||||
];
|
|
||||||
in buildPythonPackage rec {
|
|
||||||
pname = "pydantic";
|
|
||||||
version = "1.10.2";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-kbjiGIUu9gB8K5jNhhYBxqCfGqMru7dPq1scM9Sh5BA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Data validation and settings management using Python type hints.";
|
|
||||||
homepage = "https://github.com/pydantic/pydantic";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [];
|
|
||||||
};
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
propagatedBuildInputs = pydeps;
|
|
||||||
|
|
||||||
buildInputs = [];
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, pkgs}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "xonsh-apipenv";
|
||||||
|
version = "0.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "deeuu";
|
||||||
|
repo = "xontrib-apipenv";
|
||||||
|
rev = "0.4.0";
|
||||||
|
sha256 = "sha256-uFn3kF7P4wykd72XkQx6cPWLhBOh2SDQBcI3Idc2rFM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Auto pipenv support for Xonsh";
|
||||||
|
homepage = "https://github.com/deeuu/xontrib-apipenv";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [];
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
pipenv
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user