nixpkgs/pkgs/development/python-modules/stone/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
2021-04-20 22:59:00 +01:00
, mock
, ply
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "stone";
2022-03-02 21:42:27 +00:00
version = "3.3.1";
2021-04-20 22:59:00 +01:00
# pypi sdist misses requirements.txt
src = fetchFromGitHub {
owner = "dropbox";
repo = pname;
rev = "v${version}";
hash = "sha256-0FWdYbv+paVU3Wj6g9OrSNUB0pH8fLwTkhVIBPeFB/U=";
2021-04-20 22:59:00 +01:00
};
postPatch = ''
sed -i '/pytest-runner/d' setup.py
2021-04-20 22:59:00 +01:00
'';
propagatedBuildInputs = [ ply six ];
checkInputs = [ pytestCheckHook mock ];
2021-04-20 22:59:00 +01:00
# try to import from `test` directory, which is exported by the python interpreter
2022-12-18 00:39:44 +00:00
# and cannot be overridden without removing some py3 to py2 support
2021-04-20 22:59:00 +01:00
disabledTestPaths = [
"test/test_tsd_types.py"
"test/test_js_client.py"
];
disabledTests = [
"test_type_name_with_module"
];
pythonImportsCheck = [ "stone" ];
meta = with lib; {
description = "Official Api Spec Language for Dropbox";
homepage = "https://github.com/dropbox/stone";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}