mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 22:51:21 +00:00
python3Packages.stone: 3.3.9 -> 3.5.2
This commit is contained in:
@@ -8,33 +8,37 @@
|
||||
ply,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
six,
|
||||
setuptools-scm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "stone";
|
||||
version = "3.3.9";
|
||||
version = "3.5.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dropbox";
|
||||
repo = "stone";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-3tUV2JrE3S2Tj/9aHvzfBTkIWUmWzkWNsVLr5yWRE/Q=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-05sAhyQx3IalHqNkSrJgRDJz85M331hF5Crc/gtP6jE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "'pytest-runner == 5.3.2'," ""
|
||||
# https://github.com/dropbox/stone/pull/373 pins setuptools-scm to <9,
|
||||
# but that version is not in nixpkgs and it seems to work anyway?
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "setuptools-scm>=8,<9" "setuptools-scm"
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
jinja2
|
||||
ply
|
||||
six
|
||||
packaging
|
||||
ply
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
@@ -47,9 +51,9 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Official API Spec Language for Dropbox API V2";
|
||||
homepage = "https://github.com/dropbox/stone";
|
||||
changelog = "https://github.com/dropbox/stone/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/dropbox/stone/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
mainProgram = "stone";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user