From b461fafa997d401c237b661ef00249cc5d5d2aa7 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Fri, 1 Dec 2023 10:19:58 -0600 Subject: [PATCH] installed python packages the right way sda --- workstation/configuration.org | 73 ++++++++++++++++------------------- 1 file changed, 34 insertions(+), 39 deletions(-) diff --git a/workstation/configuration.org b/workstation/configuration.org index a2f8cf8..cb58b3e 100644 --- a/workstation/configuration.org +++ b/workstation/configuration.org @@ -625,9 +625,40 @@ nixfmt # linting cachix # why spend time compiling? # PYTHON. -python3 # base language -pipenv # python development workflow for humans -# poetry # dependency management made easy +(python3.withPackages (ps: with ps; [ + pipenv # python development workflow for humans + # poetry # dependency management made easy + flake8 # wraper for pyflakes, pycodestyle and mccabe + isort # sort Python imports + nose # testing and running python scripts + pyflakes # checks source code for errors + pytest # framework for writing tests + speedtest-cli # check internet speed from the comand line + editorconfig # follow rules of contributin + black # Python code formatter + pylint # bug and style checker for python + (buildPythonApplication rec { + pname = "download"; + version = "1.5"; + src = ../scripts/download/.; + doCheck = false; + buildInputs = [ setuptools ]; + propagatedBuildInputs = + [ pyyaml types-pyyaml ]; + }) + (buildPythonApplication rec { + pname = "ffpb"; + version = "0.4.1"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-7eVqbLpMHS1sBw2vYS4cTtyVdnnknGtEI8190VlXflk="; + }; + doCheck = false; + buildInputs = [ setuptools ]; + propagatedBuildInputs = + [ tqdm ]; + }) +])) # C# & Rust # omnisharp-roslyn # c# linter and code formatter @@ -643,42 +674,6 @@ nodejs # not as bad as I thought # jq # linting #+end_src -*** PYTHON - -#+begin_src nix -]) ++ (with pkgs.python3Packages; [ - flake8 # wraper for pyflakes, pycodestyle and mccabe - isort # sort Python imports - nose # testing and running python scripts - pyflakes # checks source code for errors - pytest # framework for writing tests - speedtest-cli # check internet speed from the comand line - editorconfig # follow rules of contributin - black # Python code formatter - pylint # bug and style checker for python - (buildPythonApplication rec { - pname = "download"; - version = "1.5"; - src = ../scripts/download/.; - doCheck = false; - buildInputs = [ setuptools ]; - propagatedBuildInputs = - [ pyyaml types-pyyaml ]; - }) - (buildPythonApplication rec { - pname = "ffpb"; - version = "0.4.1"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-7eVqbLpMHS1sBw2vYS4cTtyVdnnknGtEI8190VlXflk="; - }; - doCheck = false; - buildInputs = [ setuptools ]; - propagatedBuildInputs = - [ tqdm ]; - }) -#+end_src - *** NODEJS PACKAGES Mostly language servers and linters.