mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
charmcraft: pin pydantic-yaml
This commit is contained in:
parent
85687388d6
commit
1ed734c6c1
@ -1,12 +1,34 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
git,
|
git,
|
||||||
python3Packages,
|
python3,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
nix-update-script,
|
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";
|
pname = "charmcraft";
|
||||||
version = "2.7.0";
|
version = "2.7.0";
|
||||||
|
|
||||||
@ -27,7 +49,7 @@ python3Packages.buildPythonApplication rec {
|
|||||||
--replace-fail "distutils.util" "setuptools.dist"
|
--replace-fail "distutils.util" "setuptools.dist"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
dependencies = with python.pkgs; [
|
||||||
craft-cli
|
craft-cli
|
||||||
craft-parts
|
craft-parts
|
||||||
craft-providers
|
craft-providers
|
||||||
@ -47,12 +69,12 @@ python3Packages.buildPythonApplication rec {
|
|||||||
urllib3
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = with python3Packages; [ setuptools ];
|
build-system = with python.pkgs; [ setuptools ];
|
||||||
|
|
||||||
pythonRelaxDeps = [ "urllib3" ];
|
pythonRelaxDeps = [ "urllib3" ];
|
||||||
|
|
||||||
nativeCheckInputs =
|
nativeCheckInputs =
|
||||||
with python3Packages;
|
with python.pkgs;
|
||||||
[
|
[
|
||||||
pyfakefs
|
pyfakefs
|
||||||
pytest-check
|
pytest-check
|
||||||
|
Loading…
Reference in New Issue
Block a user