Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
feat: Fix Python package install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Oct 26, 2021
1 parent ed0d64a commit e474f71
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,32 @@ let
sha256 = "03yharwv0lal286d3zy6b7kj4px111s5h3a8nar8banpnqgml7v5";
})
{ };
in
let
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
python = pkgs.python38;
projectDir = builtins.path { path = ./.; name = "geostore"; };
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: {
pip =
if pkgs.lib.versionAtLeast super.pip.version "20.3" then
super.pip.overridePythonAttrs
(old:
let
pname = "pip";
version = "20.2.4";
in
{
name = pname + "-" + version;
inherit version;
src = pkgs.fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
sha256 = "eMVV4ftgV71HLQsSeaOchYlfaJVgzNrwUynn3SA1/Do=";
name = "${pname}-${version}-source";
};
}) else super.pip;
});
};
in
pkgs.mkShell {
Expand Down

0 comments on commit e474f71

Please sign in to comment.