-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Johann Bahl
committed
Oct 2, 2023
1 parent
3cb1fa9
commit 88f5bb0
Showing
4 changed files
with
15 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,21 @@ | ||
{ | ||
poetry2nix, | ||
fetchFromGitHub, | ||
poetry2nix, | ||
lzo, | ||
python310 | ||
}: | ||
python310, | ||
mkShellNoCC, | ||
poetry, | ||
runCommand, | ||
}@inputs: | ||
let | ||
#src = /home/os/backy; | ||
src = fetchFromGitHub { | ||
owner = "flyingcircusio"; | ||
repo = "backy"; | ||
rev = "5fa55f0c512e557bea3802f0be10e997e6f33f03"; | ||
hash = "sha256-n3q8xr7o/REiftxHc2LYRvKnhu7Ab2MuQ+OfhSniOhk="; | ||
rev = "e37a7f6570b6b9194cb3a27d8db2951eb5c992ce"; | ||
hash = "sha256-s7FazUx/o68VY0gaSfzSMQI4XX8o1qqKf6IEoynM4nQ="; | ||
}; | ||
|
||
in poetry2nix.mkPoetryApplication { | ||
projectDir = src; | ||
src = src; | ||
doCheck = true; | ||
python = python310; | ||
extras = []; | ||
overrides = poetry2nix.overrides.withDefaults (self: super: { | ||
python-lzo = super.python-lzo.overrideAttrs (old: { | ||
buildInputs = [ lzo ]; | ||
}); | ||
telnetlib3 = super.telnetlib3.overrideAttrs (old: { | ||
buildInputs = [ super.setuptools ]; | ||
}); | ||
pytest-flake8 = super.pytest-flake8.overrideAttrs (old: { | ||
buildInputs = [ super.setuptools ]; | ||
}); | ||
filelock = super.iniconfig.overrideAttrs (old: { | ||
buildInputs = [ super.hatchling super.hatch-vcs ]; | ||
}); | ||
iniconfig = super.iniconfig.overrideAttrs (old: { | ||
buildInputs = [ super.hatchling super.hatch-vcs ]; | ||
}); | ||
humanize = super.humanize.overrideAttrs (old: { | ||
buildInputs = [ super.hatchling super.hatch-vcs ]; | ||
}); | ||
prettytable = super.prettytable.overrideAttrs (old: { | ||
buildInputs = [ super.hatchling super.hatch-vcs ]; | ||
}); | ||
# dirty workaround, as the virtualenv-20.17.1 extracted via poetry2nix did not | ||
# find its `filelock` dependency | ||
virtualenv = python310.pkgs.virtualenv; | ||
#virtualenv = super.virtualenv.overrideAttrs (old: { | ||
# buildInputs = [ self.distlib self.filelock self.platformdirs ]; | ||
#}); | ||
consulate-fc-nix-test = super.consulate-fc-nix-test.overrideAttrs (old: { | ||
buildInputs = [ super.setuptools super.setuptools-scm ]; | ||
}); | ||
}); | ||
} | ||
lib = import "${src}/lib.nix" inputs; | ||
|
||
in | ||
lib.packages.default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters