-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow specifing overrides on buildPythonPackages
- Loading branch information
1 parent
0fae91f
commit f69a0ce
Showing
9 changed files
with
266 additions
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 +1,6 @@ | ||
[package] | ||
name = "anysnake2" | ||
version = "1.11.1" | ||
version = "1.12.0" | ||
authors = ["Florian Finkernagel <[email protected]>"] | ||
edition = "2021" | ||
|
||
|
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
38 changes: 38 additions & 0 deletions
38
examples/python_buildPackage_interdependency_with_overrides/anysnake2.toml
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# basic anysnake2.toml example | ||
# package settings | ||
[anysnake2] | ||
rev = "dev" | ||
|
||
[outside_nixpkgs] | ||
rev = "22.05" # the nixpgks version or github hash | ||
|
||
[nixpkgs] | ||
# the nixpkgs used inside the container | ||
rev = "22.05" # the nixpgks version or github hash | ||
packages = ["which"] | ||
|
||
|
||
[python] # python section is optional | ||
version="3.10" # does not go down to 3.x.x. That's implicit in the nixpkgs (for now) | ||
ecosystem_date="2022-11-23" # you get whatever packages the solver would have produced on that day | ||
|
||
# additional_mkpython_arguments = """ | ||
# """ # must be verbatim nix code | ||
|
||
[clones.code] | ||
# example-cli-python="git+https://github.com/ojixzzz/example-cli-python" | ||
|
||
[python.packages] | ||
# you can use standard python requirements.txt version specification syntax | ||
# i.e. version specifiers from https://www.python.org/dev/peps/pep-0440/#id53 | ||
# you can refer to the repos you cloned | ||
testrepo={method="fetchFromGitHub", owner="TyberiusPrime", repo="_anysnake2_test_repo", overrides = ["testrepo2"], rev = "97d57e17c1bd4a5f547fa1c1be57c2f0a1d2ec6f", hash_97d57e17c1bd4a5f547fa1c1be57c2f0a1d2ec6f = "sha256-mZw37fLouWrA2L+49UOfUsF1MDy/q5pJImw+zczE4wU=" } | ||
testrepo2={method="fetchFromGitHub", owner="TyberiusPrime", repo="_anysnake2_test_repo2", rev = "a42420f8ba0a6bc9bda0425cd665515fb92dc2b4", hash_a42420f8ba0a6bc9bda0425cd665515fb92dc2b4 = "sha256-tLz9vDTxQqFZPKkkBOZmmNNEhtf6JK2nwWiBKNH6od8="} | ||
|
||
|
||
# and you can fetch from github, git and mercurial (any nix fetcher actually, see | ||
# https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers) | ||
# if using fetchFromGitHub, the necessary hash will be added to this file | ||
# on a trust-on-first-use-basis | ||
|
||
|
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
Oops, something went wrong.