diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-01-25 12:01:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 12:01:34 +0000 |
commit | 20df8d00cc2e95ebfc7503f6cfc11ff05d0db403 (patch) | |
tree | 96a67882d22cd900e2a44e527d29538ac21b5dca /pkgs/development/python-modules/stone/default.nix | |
parent | a2f216a00334b1350df235e7c6613c6f3e9022af (diff) | |
parent | 55e19102526fba191a5aa4b8dc4529bd3af298e2 (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/python-modules/stone/default.nix')
-rw-r--r-- | pkgs/development/python-modules/stone/default.nix | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/stone/default.nix b/pkgs/development/python-modules/stone/default.nix index 1e20409b0ec9c..a0d07fa515424 100644 --- a/pkgs/development/python-modules/stone/default.nix +++ b/pkgs/development/python-modules/stone/default.nix @@ -5,43 +5,53 @@ , ply , pytestCheckHook , six +, pythonOlder }: buildPythonPackage rec { pname = "stone"; version = "3.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; - # pypi sdist misses requirements.txt src = fetchFromGitHub { owner = "dropbox"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-0FWdYbv+paVU3Wj6g9OrSNUB0pH8fLwTkhVIBPeFB/U="; }; postPatch = '' - sed -i '/pytest-runner/d' setup.py + # https://github.com/dropbox/stone/issues/288 + substituteInPlace stone/frontend/ir_generator.py \ + --replace "inspect.getargspec" "inspect.getfullargspec" + substituteInPlace setup.py \ + --replace "'pytest-runner == 5.2.0'," "" ''; - propagatedBuildInputs = [ ply six ]; - - nativeCheckInputs = [ pytestCheckHook mock ]; + propagatedBuildInputs = [ + ply + six + ]; - # try to import from `test` directory, which is exported by the python interpreter - # and cannot be overridden without removing some py3 to py2 support - disabledTestPaths = [ - "test/test_tsd_types.py" - "test/test_js_client.py" + nativeCheckInputs = [ + pytestCheckHook + mock ]; + disabledTests = [ "test_type_name_with_module" ]; - pythonImportsCheck = [ "stone" ]; + pythonImportsCheck = [ + "stone" + ]; meta = with lib; { description = "Official Api Spec Language for Dropbox"; homepage = "https://github.com/dropbox/stone"; + changelog = "https://github.com/dropbox/stone/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ jonringer ]; }; |