nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 51 lines 918 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 poetry-core, 8 9 # dependencies 10 typing-extensions, 11 12 # tests 13 unittestCheckHook, 14}: 15 16buildPythonPackage rec { 17 pname = "asserts"; 18 version = "0.14.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "srittau"; 23 repo = "python-asserts"; 24 tag = "v${version}"; 25 hash = "sha256-nSL28LaKWVkzOmyI1TpCXJxyKdqpvK/YHRLUJ77sRA8="; 26 }; 27 28 build-system = [ 29 poetry-core 30 ]; 31 32 dependencies = [ 33 typing-extensions 34 ]; 35 36 nativeCheckInputs = [ 37 unittestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "asserts" 42 ]; 43 44 meta = { 45 description = "Stand-alone Assertions for Python"; 46 homepage = "https://github.com/srittau/python-asserts"; 47 changelog = "https://github.com/srittau/python-asserts/blob/${src.rev}/CHANGELOG.md"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ doronbehar ]; 50 }; 51}