Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 37 lines 794 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, astropy 6, astropy-helpers 7, pillow 8}: 9 10buildPythonPackage rec { 11 pname = "pyavm"; 12 version = "0.9.4"; 13 14 src = fetchPypi { 15 pname = "PyAVM"; 16 inherit version; 17 sha256 = "f298b864e5bc101ecbb0e46252e95e18a180ac28ba6ec362e63c12a7e914e386"; 18 }; 19 20 propagatedBuildInputs = [ astropy-helpers ]; 21 22 checkInputs = [ pytest astropy pillow ]; 23 24 checkPhase = "pytest"; 25 26 # Disable automatic update of the astropy-helper module 27 postPatch = '' 28 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" 29 ''; 30 31 meta = with lib; { 32 description = "Simple pure-python AVM meta-data handling"; 33 homepage = http://astrofrog.github.io/pyavm/; 34 license = licenses.mit; 35 maintainers = [ maintainers.smaret ]; 36 }; 37}