mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
python3Packages.libcst: 1.7.0 -> 1.8.0 (#411796)
This commit is contained in:
commit
da62d89b91
3 changed files with 52 additions and 4 deletions
|
@ -10,7 +10,9 @@
|
|||
libiconv,
|
||||
pytestCheckHook,
|
||||
python,
|
||||
pythonOlder,
|
||||
pyyaml,
|
||||
pyyaml-ft,
|
||||
rustPlatform,
|
||||
rustc,
|
||||
setuptools-rust,
|
||||
|
@ -20,20 +22,20 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "libcst";
|
||||
version = "1.7.0";
|
||||
version = "1.8.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Instagram";
|
||||
repo = "LibCST";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-KqiB1LieRJJ34kJgIlqyMKCzO7iDen8j9+s0ZmrHe+c=";
|
||||
hash = "sha256-mHYcbw3BfvntKHadObYow8H/2f0LqpfSTbKju0CKhx4=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit pname version src;
|
||||
sourceRoot = "${src.name}/${cargoRoot}";
|
||||
hash = "sha256-EPS506x8KUFAbZ47ZWtH1q0ndXutM2fOqcsYpXRc0+c=";
|
||||
hash = "sha256-K8hug7JeLPIvrqgVaONKfixu8XRvn+pnqS0fHV+nTqg=";
|
||||
};
|
||||
|
||||
cargoRoot = "native";
|
||||
|
@ -52,7 +54,7 @@ buildPythonPackage rec {
|
|||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
||||
|
||||
dependencies = [
|
||||
pyyaml
|
||||
(if pythonOlder "3.13" then pyyaml else pyyaml-ft)
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
|
44
pkgs/development/python-modules/pyyaml-ft/default.nix
Normal file
44
pkgs/development/python-modules/pyyaml-ft/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
buildPythonPackage,
|
||||
cython,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
libyaml,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyyaml";
|
||||
version = "7.0.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Quansight-Labs";
|
||||
repo = "pyyaml-ft";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-hmHozVmqQuS+NqRN2SSEqNCemyKcBM19elhka4GykE0=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
cython
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [ libyaml ];
|
||||
|
||||
pythonImportsCheck = [ "yaml" ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/Quansight-Labs/pyyaml-ft/blob/${src.tag}/CHANGES";
|
||||
description = "YAML parser and emitter for Python with support for free-threading";
|
||||
homepage = "https://github.com/Quansight-Labs/pyyaml-ft";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -14700,6 +14700,8 @@ self: super: with self; {
|
|||
|
||||
pyyaml-env-tag = callPackage ../development/python-modules/pyyaml-env-tag { };
|
||||
|
||||
pyyaml-ft = callPackage ../development/python-modules/pyyaml-ft { };
|
||||
|
||||
pyyaml-include = callPackage ../development/python-modules/pyyaml-include { };
|
||||
|
||||
pyyardian = callPackage ../development/python-modules/pyyardian { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue