Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python3Packages.stone: init at 3.2.1

authored by Jonathan Ringer and committed by Jonathan Ringer bdeaccef 5eafa758

+53
+51
pkgs/development/python-modules/stone/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi 2 + , coverage 3 + , mock 4 + , ply 5 + , pytestrunner 6 + , pytestCheckHook 7 + , six 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "stone"; 12 + version = "3.2.1"; 13 + 14 + src = fetchPypi { 15 + inherit pname version; 16 + sha256 = "0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"; 17 + }; 18 + 19 + postPatch = '' 20 + substituteInPlace setup.py \ 21 + --replace "pytest-runner == 5.2.0" "pytest-runner" \ 22 + --replace "pytest < 5" "pytest" 23 + substituteInPlace test/requirements.txt \ 24 + --replace "coverage==5.3" "coverage" 25 + ''; 26 + 27 + nativeBuildInputs = [ pytestrunner ]; 28 + 29 + propagatedBuildInputs = [ ply six ]; 30 + 31 + checkInputs = [ pytestCheckHook coverage mock ]; 32 + 33 + # try to import from `test` directory, which is exported by the python interpreter 34 + # and cannot be overriden without removing some py3 to py2 support 35 + disabledTestPaths = [ 36 + "test/test_tsd_types.py" 37 + "test/test_js_client.py" 38 + ]; 39 + disabledTests = [ 40 + "test_type_name_with_module" 41 + ]; 42 + 43 + pythonImportsCheck = [ "stone" ]; 44 + 45 + meta = with lib; { 46 + description = "Official Api Spec Language for Dropbox"; 47 + homepage = "https://github.com/dropbox/stone"; 48 + license = licenses.mit; 49 + maintainers = with maintainers; [ jonringer ]; 50 + }; 51 + }
+2
pkgs/top-level/python-packages.nix
··· 7597 7597 7598 7598 stm32loader = callPackage ../development/python-modules/stm32loader { }; 7599 7599 7600 + stone = callPackage ../development/python-modules/stone { }; 7601 + 7600 7602 strategies = callPackage ../development/python-modules/strategies { }; 7601 7603 7602 7604 stravalib = callPackage ../development/python-modules/stravalib { };