mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
charmcraft: pin pydantic-yaml
This commit is contained in:
parent
85687388d6
commit
1ed734c6c1
@ -1,12 +1,34 @@
|
||||
{
|
||||
lib,
|
||||
git,
|
||||
python3Packages,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
let
|
||||
python = python3.override {
|
||||
packageOverrides = self: super: {
|
||||
pydantic-yaml = super.pydantic-yaml.overridePythonAttrs (old: rec {
|
||||
version = "0.11.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "NowanIlfideme";
|
||||
repo = "pydantic-yaml";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-AeUyVav0/k4Fz69Qizn4hcJKoi/CDR9eUan/nJhWsDY=";
|
||||
};
|
||||
dependencies = with self; [
|
||||
deprecated
|
||||
importlib-metadata
|
||||
pydantic_1
|
||||
ruamel-yaml
|
||||
types-deprecated
|
||||
];
|
||||
});
|
||||
};
|
||||
};
|
||||
in
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
pname = "charmcraft";
|
||||
version = "2.7.0";
|
||||
|
||||
@ -27,7 +49,7 @@ python3Packages.buildPythonApplication rec {
|
||||
--replace-fail "distutils.util" "setuptools.dist"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
dependencies = with python.pkgs; [
|
||||
craft-cli
|
||||
craft-parts
|
||||
craft-providers
|
||||
@ -47,12 +69,12 @@ python3Packages.buildPythonApplication rec {
|
||||
urllib3
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3Packages; [ setuptools ];
|
||||
build-system = with python.pkgs; [ setuptools ];
|
||||
|
||||
pythonRelaxDeps = [ "urllib3" ];
|
||||
|
||||
nativeCheckInputs =
|
||||
with python3Packages;
|
||||
with python.pkgs;
|
||||
[
|
||||
pyfakefs
|
||||
pytest-check
|
||||
|
Loading…
Reference in New Issue
Block a user