mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
libiconv,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
python,
|
python,
|
||||||
|
pythonOlder,
|
||||||
pyyaml,
|
pyyaml,
|
||||||
|
pyyaml-ft,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
rustc,
|
rustc,
|
||||||
setuptools-rust,
|
setuptools-rust,
|
||||||
|
@ -20,20 +22,20 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libcst";
|
pname = "libcst";
|
||||||
version = "1.7.0";
|
version = "1.8.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Instagram";
|
owner = "Instagram";
|
||||||
repo = "LibCST";
|
repo = "LibCST";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-KqiB1LieRJJ34kJgIlqyMKCzO7iDen8j9+s0ZmrHe+c=";
|
hash = "sha256-mHYcbw3BfvntKHadObYow8H/2f0LqpfSTbKju0CKhx4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
sourceRoot = "${src.name}/${cargoRoot}";
|
sourceRoot = "${src.name}/${cargoRoot}";
|
||||||
hash = "sha256-EPS506x8KUFAbZ47ZWtH1q0ndXutM2fOqcsYpXRc0+c=";
|
hash = "sha256-K8hug7JeLPIvrqgVaONKfixu8XRvn+pnqS0fHV+nTqg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoRoot = "native";
|
cargoRoot = "native";
|
||||||
|
@ -52,7 +54,7 @@ buildPythonPackage rec {
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
pyyaml
|
(if pythonOlder "3.13" then pyyaml else pyyaml-ft)
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
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-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 { };
|
pyyaml-include = callPackage ../development/python-modules/pyyaml-include { };
|
||||||
|
|
||||||
pyyardian = callPackage ../development/python-modules/pyyardian { };
|
pyyardian = callPackage ../development/python-modules/pyyardian { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue