Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 36 lines 770 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy3k 5, future 6, pytestCheckHook 7, mock 8}: 9 10buildPythonPackage rec { 11 pname = "pysmart-smartx"; 12 version = "0.3.10"; 13 14 src = fetchFromGitHub { 15 owner = "smartxworks"; 16 repo = "pySMART"; 17 rev = "v${version}"; 18 sha256 = "1irl4nlgz3ds3aikraa9928gzn6hz8chfh7jnpmq2q7d2vqbdrjs"; 19 }; 20 21 propagatedBuildInputs = [ future ]; 22 23 # tests require contextlib.nested 24 doCheck = !isPy3k; 25 26 checkInputs = [ pytestCheckHook mock ]; 27 28 pythonImportsCheck = [ "pySMART" ]; 29 30 meta = with lib; { 31 description = "It's a fork of pySMART with lots of bug fix and enhances"; 32 homepage = "https://github.com/smartxworks/pySMART"; 33 maintainers = with maintainers; [ rhoriguchi ]; 34 license = licenses.gpl2Only; 35 }; 36}