Skip to content

Commit

Permalink
Revert "build: Try switching to nixpkgs-python"
Browse files Browse the repository at this point in the history
This reverts commit 8646af0.
  • Loading branch information
bow committed Jul 26, 2024
1 parent 8646af0 commit 18eefe6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 47 deletions.
38 changes: 0 additions & 38 deletions flake.lock

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

23 changes: 14 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/9355fa86e6f27422963132c2c9aeedb0fb963d93";
nixpkgs-python = {
url = "github:cachix/nixpkgs-python";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a";
poetry2nix = {
url = "github:bow/poetry2nix/feature/more-build-overrides";
Expand All @@ -19,7 +15,6 @@
{
self,
nixpkgs,
nixpkgs-python,
flake-utils,
poetry2nix,
}:
Expand All @@ -35,8 +30,8 @@
_final: prev: { mypy = prev.mypy.override { preferWheel = true; }; }
);
projectDir = self;
pythonVersion = "3.12.4"; # NOTE: Keep in-sync with pyproject.toml.
python = nixpkgs-python.packages.${system}.${pythonVersion};
python = pkgs.python312; # NOTE: Keep in-sync with pyproject.toml.
pythonPkgs = pkgs.python312Packages;
app = pkgs.poetry2nix.mkPoetryApplication { inherit overrides projectDir python; };
in
{
Expand All @@ -50,7 +45,7 @@
let
devPackages = with pkgs; [
# python-only
(poetry.withPlugins (_ps: [ python312Packages.poetry-dynamic-versioning ]))
(poetry.withPlugins (_ps: [ pythonPkgs.poetry-dynamic-versioning ]))
# nix-only
deadnix
nixfmt-rfc-style
Expand All @@ -62,7 +57,17 @@
pre-commit
skopeo
];
devNativeBuildInputs = [ (python.withPackages (ps: [ ps.venvShellHook ])) ];
devNativeBuildInputs = with pkgs; [
python
pythonPkgs.venvShellHook
git
libxml2
libxslt
libzip
taglib
openssl
zlib
];
ciEnv = pkgs.poetry2nix.mkPoetryEnv { inherit overrides projectDir python; };
in
{
Expand Down

0 comments on commit 18eefe6

Please sign in to comment.