mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.stone: init at 3.2.1
This commit is contained in:
parent
5eafa75805
commit
bdeaccefbf
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/stone/default.nix
Normal file
51
pkgs/development/python-modules/stone/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
|
, coverage
|
||||||
|
, mock
|
||||||
|
, ply
|
||||||
|
, pytestrunner
|
||||||
|
, pytestCheckHook
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "stone";
|
||||||
|
version = "3.2.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pytest-runner == 5.2.0" "pytest-runner" \
|
||||||
|
--replace "pytest < 5" "pytest"
|
||||||
|
substituteInPlace test/requirements.txt \
|
||||||
|
--replace "coverage==5.3" "coverage"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ ply six ];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook coverage mock ];
|
||||||
|
|
||||||
|
# try to import from `test` directory, which is exported by the python interpreter
|
||||||
|
# and cannot be overriden without removing some py3 to py2 support
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7597,6 +7597,8 @@ in {
|
||||||
|
|
||||||
stm32loader = callPackage ../development/python-modules/stm32loader { };
|
stm32loader = callPackage ../development/python-modules/stm32loader { };
|
||||||
|
|
||||||
|
stone = callPackage ../development/python-modules/stone { };
|
||||||
|
|
||||||
strategies = callPackage ../development/python-modules/strategies { };
|
strategies = callPackage ../development/python-modules/strategies { };
|
||||||
|
|
||||||
stravalib = callPackage ../development/python-modules/stravalib { };
|
stravalib = callPackage ../development/python-modules/stravalib { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue