Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
chore: remove manual pydantic v1 overlay, use pydantic_1
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Mar 11, 2024
1 parent 93d72ac commit 7c9b5c9
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,11 @@
spdx-lookup = final.callPackage ./deps/spdx-lookup.nix { };
types-deprecated = final.callPackage ./deps/types-deprecated.nix { };

pydantic = python_prev.pydantic.overrideAttrs (_oldAttrs: rec {
version = "1.10.13";
pyproject = false;

src = prev.fetchFromGitHub {
owner = "pydantic";
repo = "pydantic";
rev = "refs/tags/v${version}";
hash = "sha256-ruDVcCLPVuwIkHOjYVuKOoP3hHHr7ItIY55Y6hUgR74=";
};

propagatedBuildInputs = with python_prev; [
setuptools
typing-extensions
];
doCheck = false;
preCheck = false;
disabledTestPaths = false;
});
pydantic = python_prev.pydantic_1;

# versioningit 2.2.1 migrated to pydantic 2, which is incompatible with the
# craft applications and libraries.
versioningit = python_prev.versioningit.overrideAttrs (_oldAttrs: rec {
versioningit = python_prev.versioningit.overridePythonAttrs (_oldAttrs: rec {
version = "2.2.0";
src = prev.fetchFromGitHub {
owner = "jwodder";
Expand Down

0 comments on commit 7c9b5c9

Please sign in to comment.