feat(init): init
This commit is contained in:
commit
3648658a9d
4 changed files with 132 additions and 0 deletions
5
default.nix
Normal file
5
default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, lib ? pkgs.lib }: with lib;
|
||||||
|
mapAttrs' (name: _: {
|
||||||
|
value = pkgs.python3.pkgs.callPackage (./python-pkgs/${name}) { };
|
||||||
|
name = removeSuffix ".nix" name;
|
||||||
|
}) (builtins.readDir ./python-pkgs)
|
47
python-pkgs/django-cas-ng.nix
Normal file
47
python-pkgs/django-cas-ng.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
setuptools,
|
||||||
|
wheel,
|
||||||
|
flake8,
|
||||||
|
lxml,
|
||||||
|
python-cas,
|
||||||
|
requests,
|
||||||
|
django,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "django-cas-ng";
|
||||||
|
version = "5.0.1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "django-cas-ng";
|
||||||
|
repo = "django-cas-ng";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-jGoros8HbSWCtWvw2ilttm0MtWtEZDUy5KWNfczJvWk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
flake8
|
||||||
|
lxml
|
||||||
|
python-cas
|
||||||
|
requests
|
||||||
|
django
|
||||||
|
];
|
||||||
|
|
||||||
|
# pythonImportsCheck = [ "django_cas_ng" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Django CAS 1.0/2.0/3.0 client authentication library, support Django 2.0, 2.1, 2.2, 3.0 and Python 3.5";
|
||||||
|
homepage = "https://github.com/django-cas-ng/django-cas-ng";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
37
python-pkgs/django-impersonate.nix
Normal file
37
python-pkgs/django-impersonate.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
setuptools,
|
||||||
|
wheel,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "django-impersonate";
|
||||||
|
version = "0.9.3";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "BetterWorks";
|
||||||
|
repo = "django-impersonate";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-IELpNA5G67FepRKxNEOGRqzb1QwfrzAJzTCrYtQsM34=";
|
||||||
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"django_impersonate"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Fork of https://bitbucket.org/petersanchez/django-impersonate";
|
||||||
|
homepage = "https://github.com/BetterWorks/django-impersonate.git";
|
||||||
|
changelog = "https://github.com/BetterWorks/django-impersonate/blob/${src.rev}/CHANGELOG";
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
maintainers = with lib.maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
43
python-pkgs/python-cas.nix
Normal file
43
python-pkgs/python-cas.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
setuptools,
|
||||||
|
wheel,
|
||||||
|
lxml,
|
||||||
|
requests,
|
||||||
|
six,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-cas";
|
||||||
|
version = "1.6.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "python-cas";
|
||||||
|
repo = "python-cas";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-0lpjG/Sma0tJGtahiFE1CjvTyswrBUp+F6f1S65b+lk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
lxml
|
||||||
|
requests
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
# pythonImportsCheck = [ "python_cas" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python CAS (Central Authentication Service) client library support CAS 1.0/2.0/3.0";
|
||||||
|
homepage = "https://github.com/python-cas/python-cas";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue