Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
26391979
Commit
26391979
authored
Jan 10, 2021
by
Christoph Ruegge
Browse files
Add poetry2nix environment
parent
145cb152
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
26391979
...
...
@@ -6,4 +6,5 @@ build
dist
.vscode/launch.json
.vscode/settings.json
tests/orb_tomog_regression_tests.py
\ No newline at end of file
tests/orb_tomog_regression_tests.py
/env
env.nix
0 → 100644
View file @
26391979
# Build with
#
# nix-build env.nix -o env
#
# VSCode will see the generated ./env as a virtualenv and offer it as an
# interpreter in the ‘Python: Select Interpreter’ command.
#
# To run Python with all dependencies available, use the wrapper script
# env/bin/python.
{
nixpkgs
?
<
nixpkgs
>
,
pkgs
?
import
nixpkgs
{}
}:
with
pkgs
;
poetry2nix
.
mkPoetryEnv
{
projectDir
=
./.
;
preferWheels
=
true
;
overrides
=
poetry2nix
.
overrides
.
withDefaults
(
self
:
super
:
{
# We need to explicityly specify the dependency on the plotting backend.
# Use tkinter for simplicity.
matplotlib
=
super
.
matplotlib
.
overridePythonAttrs
(
attrs
:
{
propagatedBuildInputs
=
attrs
.
propagatedBuildInputs
++
[
self
.
tkinter
];
});
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment