Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 651 B view raw
1{ lib, buildPythonPackage, fetchPypi 2}: 3 4buildPythonPackage rec { 5 pname = "puremagic"; 6 version = "1.10"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "025ih5q1qa40x88j7ngsdr5sf0dp400kwlfzz60i7v6fh0ms1zkg"; 11 }; 12 13 postPatch = '' 14 substituteInPlace setup.py \ 15 --replace '"argparse"' "" 16 ''; 17 18 # test data not included on pypi 19 doCheck = false; 20 21 pythonImportsCheck = [ "puremagic" ]; 22 23 meta = with lib; { 24 description = "Pure python implementation of magic file detection"; 25 license = licenses.mit; 26 homepage = "https://github.com/cdgriffith/puremagic"; 27 maintainers = with maintainers; [ globin ]; 28 }; 29}