nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 983 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 jinja2, 6 mock, 7 packaging, 8 ply, 9 pytestCheckHook, 10 setuptools, 11 six, 12}: 13 14buildPythonPackage rec { 15 pname = "stone"; 16 version = "3.3.9"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "dropbox"; 21 repo = "stone"; 22 tag = "v${version}"; 23 hash = "sha256-3tUV2JrE3S2Tj/9aHvzfBTkIWUmWzkWNsVLr5yWRE/Q="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace-fail "'pytest-runner == 5.3.2'," "" 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 jinja2 35 ply 36 six 37 packaging 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 mock 43 ]; 44 45 pythonImportsCheck = [ "stone" ]; 46 47 meta = { 48 description = "Official API Spec Language for Dropbox API V2"; 49 homepage = "https://github.com/dropbox/stone"; 50 changelog = "https://github.com/dropbox/stone/releases/tag/${src.tag}"; 51 license = lib.licenses.mit; 52 maintainers = [ ]; 53 mainProgram = "stone"; 54 }; 55}