nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 55 lines 1.0 kB view raw
1{ lib 2, beautifultable 3, buildPythonPackage 4, click 5, click-default-group 6, fetchFromGitHub 7, humanize 8, keyring 9, python 10, python-dateutil 11, pythonOlder 12, requests 13}: 14 15buildPythonPackage rec { 16 pname = "mwdblib"; 17 version = "4.2.1"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "CERT-Polska"; 24 repo = pname; 25 rev = "v${version}"; 26 hash = "sha256-Wkqvi/buYKDoGi+4C9zkxWEiGynk9Ds8gLsdoaZCdKg="; 27 }; 28 29 propagatedBuildInputs = [ 30 beautifultable 31 click 32 click-default-group 33 humanize 34 keyring 35 python-dateutil 36 requests 37 ]; 38 39 checkPhase = '' 40 runHook preCheck 41 ${python.interpreter} -m unittest discover 42 runHook postCheck 43 ''; 44 45 pythonImportsCheck = [ 46 "mwdblib" 47 ]; 48 49 meta = with lib; { 50 description = "Python client library for the mwdb service"; 51 homepage = "https://github.com/CERT-Polska/mwdblib"; 52 license = with licenses; [ bsd3 ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}