1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
(define-module (hidamari-blue cum) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages python) #:use-module (gnu packages gtk) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system python) #:use-module (srfi srfi-1)) ;;; WIP ;;; TODO try to get tests working, no idea why they should work ;;; (config.py:initalize is not called before the scrapers base.py calls config.py:get) ;;; look deeper into it ;;; 'testing': ['codecov', 'cov-core', 'nose2', 'pycodestyle'] ;; (define python-codecov ;; (package ;; (name "python-codecov") ;; (version "2.0.9") ;; (source ;; (origin ;; (method url-fetch) ;; (uri (string-append ;; "https://pypi.python.org/packages/be/0d/80848954b74238c8817eb00e247813ed8ff043bd746d8ff5e178a139178d/codecov-" ;; version ;; ".tar.gz")) ;; (sha256 ;; (base32 ;; "037h4dcl8xshlq3rj8409p11rpgnyqrhlhfq8j34s94nm0n1h76v")))) ;; (build-system python-build-system) ;; (propagated-inputs ;; `(("python-coverage" ,python-coverage) ;; ("python-requests" ,python-requests))) ;; (inputs ;; `(("python-unittest2" ,python-unittest2))) ;; (home-page ;; "http://github.com/codecov/codecov-python") ;; (synopsis ;; "Hosted coverage reports for Github, Bitbucket and Gitlab") ;; (description ;; "Hosted coverage reports for Github, Bitbucket and Gitlab") ;; (license #f))) (define-public cum (package (name "cum") (version "0.8") (source (origin (method url-fetch) (uri (string-append "https://pypi.python.org/packages/c1/0e/90f9c5a74ba538c9abd921c4be9c3d77940db103b2238625ac3fb575c5c3/cum-" version ".tar.gz")) (sha256 (base32 "1r5a674hgnh9k46833knrvl16fjc0ikr4qm82n08f5xbfkpyqbid")))) ;; TODO enable tests, currently __config is not found, (something with home not beeing available at build time maybe)??? (build-system python-build-system) (inputs `(("python-alembic" ,python-alembic) ("python-beautifulsoup4" ,python-beautifulsoup4) ("python-click" ,python-click) ("python-natsort" ,python-natsort) ("python-requests" ,python-requests) ("python-sqlalchemy" ,python-sqlalchemy))) (arguments '(#:tests? #f ;; may not be required ;; #:phases ;; (modify-phases ;; %standard-phases ;; (add-before 'check 'setup-test-env ;; (lambda* _ ;; (setenv "HOME" ".")))) )) ;; (native-inputs ;; `(("python-codecov" ,python-codecov) ;; ("python-cov-core" ,python-cov-core) ;; ("python-nose2" ,python-nose2) ;; ("python-pycodestyle" ,python-pycodestyle))) (home-page "https://github.com/Hamuko/cum") (synopsis "automated manga downloader") (description "cum (comic updater, mangafied) is a tool for automated manga downloads from various online manga aggregate sites. It can be used to follow multiple series and check back for updates, or just to get specific chapters.") (license license:asl2.0)))