initial commit

This commit is contained in:
vuko 2020-06-16 20:52:59 +02:00
commit 7d5adc400a
5 changed files with 76 additions and 0 deletions

6
README.rst Normal file
View file

@ -0,0 +1,6 @@
nix_ derivations for spaceauth_ - Warsaw Hackerspace flask authorization module
.. _nix: https://nixos.org/
.. _spaceauth: https://code.hackerspace.pl/informatic/flask-spaceauth/

22
flask-oauthlib.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.python3Packages.buildPythonPackage rec {
pname = "flask-oauthlib-${version}";
version = "0.9.5";
src = pkgs.fetchFromGitHub {
owner = "lepture";
repo = "flask-oauthlib";
rev = "572922bd8d916970ed66aeec32955c992828a473";
sha256 = "1bmjl1j0m0fy4zwnhpadx0mzbi893qp9x7dm4nypsvczbcaqjbm0";
};
buildInputs = [
(import ./oauthlib.nix {})
(import ./requests-oauthlib.nix {})
];
propagatedBuildInputs = [
(import ./oauthlib.nix {})
(import ./requests-oauthlib.nix {})
pkgs.python3Packages.flask
];
doCheck = false;
}

13
oauthlib.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.python3Packages.buildPythonPackage rec {
pname = "oauthlib-${version}";
version = "2.1.0";
src = pkgs.fetchFromGitHub {
owner = "oauthlib";
repo = "oauthlib";
rev = "f853295b674cb2be0b83f72f71739a7a23f5936e";
sha256 = "0xwgibs8n9vyvgwazdjckcidy348ly4kanf8rdq44b7jk1prramb";
};
doCheck=false;
}

18
requests-oauthlib.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.python3Packages.buildPythonPackage rec {
pname = "requests-oauthlib-${version}";
version = "1.1.0";
src = pkgs.fetchFromGitHub {
owner = "requests";
repo = "requests-oauthlib";
rev = "4784955f033f078b8e4861bda710a86947594f29";
sha256 = "03jqw5a7i2k8qfb2h2aj3nwy115mk3bgm9zplh3a83x6qv8hs3c3";
};
propagatedBuildInputs = [
pkgs.python3Packages.requests
(import ./oauthlib.nix {})
];
doCheck=false;
}

17
spaceauth.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.python3Packages.buildPythonPackage rec {
pname = "flask-spaceauth-${version}";
version = "2.0";
src = pkgs.fetchgit {
url = "http://code.hackerspace.pl/informatic/flask-spaceauth";
rev = "c1482c2bd0e11bb22d07e1ad6724de742ab2858f";
sha256 = "0yghlspc161s8ll9jwfj5w4yjsiv734ff90wdjfyq97dqzf0ab3s";
};
propagatedBuildInputs = [
pkgs.python3Packages.flask
pkgs.python3Packages.flask_login
pkgs.python3Packages.blinker
(import ./flask-oauthlib.nix {})
];
}