gestioCOF/shell.nix

38 lines
799 B
Nix
Raw Normal View History

2022-10-03 13:08:01 +02:00
{ pkgs ? (import <nixpkgs>) {}}:
2022-10-03 10:34:06 +02:00
let
2022-10-03 13:08:01 +02:00
pypiDataRev = "2505eb53d85cd727c87611ee4aa35152821a12b2";
pypiDataSha256 = "0nhl0rzlp4fgzxb15pmnq14d0rzcwhvwn40vx7fnk41z9gwxcp4c";
pypiData = builtins.fetchTarball {
name = "pypi-deps-db-src";
url = "https://github.com/DavHau/pypi-deps-db/tarball/${pypiDataRev}";
sha256 = "${pypiDataSha256}";
};
2022-10-03 10:34:06 +02:00
mach-nix = import
(builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix";
ref = "refs/tags/3.5.0";
})
2022-10-03 13:08:01 +02:00
{
inherit pypiData;
python = "python39";
};
2022-10-03 10:34:06 +02:00
requirements = builtins.readFile ./requirements.txt;
requirements-dev = ''
django-debug-toolbar
ipython
2022-10-03 13:08:01 +02:00
black==22.3.0
2022-10-03 10:34:06 +02:00
isort
flake8
'';
in
mach-nix.mkPythonShell {
requirements = requirements + requirements-dev;
}