nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pretend, 6 pyparsing, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "packvers"; 13 version = "22.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "nexB"; 18 repo = "packvers"; 19 tag = version; 20 hash = "sha256-19jCW3BK6XIcukDsFd1jERc2+g8Hcs/gdm3+dBzQS14="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ pyparsing ]; 26 27 nativeCheckInputs = [ 28 pretend 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "packvers" ]; 33 34 disabledTests = [ 35 # Failed: DID NOT RAISE <class 'packvers.requirements.InvalidRequirement'> 36 "test_invalid_file_urls" 37 ]; 38 39 meta = { 40 description = "Module for version handling of modules"; 41 homepage = "https://github.com/aboutcode-org/packvers"; 42 changelog = "https://github.com/nexB/packvers/blob/${src.tag}/CHANGELOG.rst"; 43 license = with lib.licenses; [ 44 asl20 # and 45 bsd2 46 ]; 47 maintainers = with lib.maintainers; [ fab ]; 48 }; 49}