Skip to content

Commit

Permalink
Unpin psutil and requests
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeyg56 committed Aug 3, 2024
1 parent a14d06c commit f45c739
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 38 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@
}:
let

psutil = python3Packages.psutil.overrideAttrs (oldAttrs: {
src = fetchFromGitHub {
owner = "giampaolo";
repo = "psutil";
rev = "4cf56e08c1bc883ec89758834b50954380759858";
sha256 = "61JwXP/cZrXqdBnb2J0kdDJoKpltO62KcpM0sYX6g1A=";
};
});

pyinotify = python3Packages.pyinotify.overrideAttrs (oldAttrs: {
src = fetchFromGitHub {
owner = "shadeyg56";
Expand All @@ -26,14 +17,6 @@ let
patches = [];
});

requests = python3Packages.requests.overrideAttrs (oldAttrs: {
src = fetchPypi {
pname = "requests";
version = "2.32.1";
hash = "sha256-65fofmTHnmTluKx1zundH5f0niibCD7mvpYmiTByVoU=";
};
});

in
python3Packages.buildPythonPackage {
# use pyproject.toml instead of setup.py
Expand Down
5 changes: 3 additions & 2 deletions nix/shell.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
python310Packages,
python3Packages,
pkgs,
...
}: let
mainPkg = python3Packages.callPackage ./default.nix {};
in
mainPkg.overrideAttrs (oa: {
nativeBuildInputs =
[
python310Packages.pip
python3Packages.pip
pkgs.poetry
]
++ (oa.nativeBuildInputs or []);
})
39 changes: 25 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
psutil = {git = "https://github.com/giampaolo/psutil.git", rev = "4cf56e08c1bc883ec89758834b50954380759858"}
psutil = "^6.0.0"
click = "^8.1.0"
distro = "^1.8.0"
requests = "^2.32.0"
requests = "^2.32.3"
PyGObject = "^3.46.0"
pyinotify = {git = "https://github.com/shadeyg56/pyinotify-3.12"}

Expand Down

0 comments on commit f45c739

Please sign in to comment.