nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 53 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 click, 7 pytestCheckHook, 8 pyyaml, 9 pytest-icdiff, 10 writableTmpDirAsHomeHook, 11}: 12 13buildPythonPackage rec { 14 pname = "symbex"; 15 version = "2.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "simonw"; 20 repo = "symbex"; 21 tag = version; 22 hash = "sha256-swg98z4DpQJ5rq7tdsd3FofbYF7O5S+9ZR0weoM2DoI="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ click ]; 28 29 pythonImportsCheck = [ "symbex" ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 pyyaml 34 pytest-icdiff 35 writableTmpDirAsHomeHook 36 ]; 37 38 disabledTests = [ 39 # Fails with `TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_std...` 40 # https://github.com/simonw/symbex/issues/48 41 "test_errors" 42 # Fails with AssertionError (SystemExit(1).stdout is '' not the expected message) 43 "test_output" 44 ]; 45 46 meta = { 47 description = "Find the Python code for specified symbols"; 48 homepage = "https://github.com/simonw/symbex"; 49 changelog = "https://github.com/simonw/symbex/releases/tag/${version}/CHANGELOG.md"; 50 license = lib.licenses.asl20; 51 maintainers = with lib.maintainers; [ philiptaron ]; 52 }; 53}