feat(shell.nix): Switch to python 3.9
This commit is contained in:
parent
d75eaf583f
commit
e92c500940
1 changed files with 13 additions and 27 deletions
40
shell.nix
40
shell.nix
|
@ -1,29 +1,12 @@
|
||||||
{ pkgs ? import <nixpkgs> { }, ... }:
|
{
|
||||||
|
pkgs ? import <nixpkgs> { },
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
python = pkgs.python38;
|
python = pkgs.python39;
|
||||||
|
|
||||||
django-types = python.pkgs.buildPythonPackage rec {
|
|
||||||
pname = "django-types";
|
|
||||||
version = "0.17.0";
|
|
||||||
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
src = pkgs.fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
hash = "sha256-wcQqt4h2xXxyg0LVqwYHJas3H8jcg7uFuuC+BoRqrXA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = with python.pkgs; [ poetry-core ];
|
|
||||||
|
|
||||||
# setup.cfg tries to pull in nonexistent LICENSE.txt file
|
|
||||||
# postPatch = "rm setup.cfg";
|
|
||||||
|
|
||||||
# propagatedBuildInputs = [ django typing-extensions ];
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
|
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
|
||||||
|
@ -34,11 +17,14 @@ pkgs.mkShell {
|
||||||
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
|
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
packages = [ python django-types ] ++ (with python.pkgs; [
|
packages =
|
||||||
pip
|
[ python ]
|
||||||
virtualenv
|
++ (with python.pkgs; [
|
||||||
python-ldap
|
django-types
|
||||||
]);
|
pip
|
||||||
|
virtualenv
|
||||||
|
python-ldap
|
||||||
|
]);
|
||||||
|
|
||||||
allowSubstitutes = false;
|
allowSubstitutes = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue