Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 41 lines 765 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pretend, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "verspec"; 11 version = "0.1.0"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-xFBMppeyBWzbS/pxIUYfWg6BgJJVtBwD3aS6gjY3wB4="; 17 }; 18 19 nativeCheckInputs = [ 20 pretend 21 pytestCheckHook 22 ]; 23 24 disabledTestPaths = [ 25 # Import fail 26 "test/test_specifiers.py" 27 ]; 28 29 pythonImportsCheck = [ "verspec" ]; 30 31 meta = { 32 description = "Flexible version handling"; 33 homepage = "https://github.com/jimporter/verspec"; 34 changelog = "https://github.com/jimporter/averspec/releases/tag/v${version}"; 35 license = with lib.licenses; [ 36 bsd2 # and 37 asl20 38 ]; 39 maintainers = [ ]; 40 }; 41}