From e2d7bba816dc489311ce0691d457fd8dc947fc1e Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 3 Oct 2022 13:08:01 +0200 Subject: [PATCH] dev: update requirements --- requirements.txt | 2 +- shell.nix | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 38e04bd0..6caad72f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ configparser==3.5.0 Django==3.2.* -django-autocomplete-light==3.9.* +django-autocomplete-light==3.9.4 django-cas-ng==4.3.* django-djconfig==0.10.0 django-hCaptcha==0.2.0 diff --git a/shell.nix b/shell.nix index be49fa83..bdfac247 100644 --- a/shell.nix +++ b/shell.nix @@ -1,17 +1,32 @@ +{ pkgs ? (import ) {}}: + let + pypiDataRev = "2505eb53d85cd727c87611ee4aa35152821a12b2"; + pypiDataSha256 = "0nhl0rzlp4fgzxb15pmnq14d0rzcwhvwn40vx7fnk41z9gwxcp4c"; + + pypiData = builtins.fetchTarball { + name = "pypi-deps-db-src"; + url = "https://github.com/DavHau/pypi-deps-db/tarball/${pypiDataRev}"; + sha256 = "${pypiDataSha256}"; + }; + mach-nix = import (builtins.fetchGit { url = "https://github.com/DavHau/mach-nix"; ref = "refs/tags/3.5.0"; }) - { }; + { + inherit pypiData; + + python = "python39"; + }; requirements = builtins.readFile ./requirements.txt; requirements-dev = '' django-debug-toolbar ipython - black + black==22.3.0 isort flake8 '';