diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-12-31 14:01:16 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-12-31 14:01:16 +0100 |
commit | 06c9299918ab9223822b2081e049899155fc0288 (patch) | |
tree | 16c1bf2b43830f281b12ddda95f98e294aa4a86a | |
parent | 670c194dab0aedcd02feee74933ed43f79417caf (diff) | |
download | nixpkgs-06c9299918ab9223822b2081e049899155fc0288.tar nixpkgs-06c9299918ab9223822b2081e049899155fc0288.tar.gz nixpkgs-06c9299918ab9223822b2081e049899155fc0288.tar.bz2 nixpkgs-06c9299918ab9223822b2081e049899155fc0288.tar.lz nixpkgs-06c9299918ab9223822b2081e049899155fc0288.tar.xz nixpkgs-06c9299918ab9223822b2081e049899155fc0288.tar.zst nixpkgs-06c9299918ab9223822b2081e049899155fc0288.zip |
python.pkgs.jdcal: 1.0 -> 1.3
-rw-r--r-- | pkgs/development/python-modules/jdcal/default.nix | 28 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 20 |
2 files changed, 29 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/jdcal/default.nix b/pkgs/development/python-modules/jdcal/default.nix new file mode 100644 index 00000000000..d3ed32c0882 --- /dev/null +++ b/pkgs/development/python-modules/jdcal/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +}: + +buildPythonPackage rec { + pname = "jdcal"; + version = "1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + py.test + ''; + + meta = { + description = "A module containing functions for converting between Julian dates and calendar dates"; + homepage = "https://github.com/phn/jdcal"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ lihop ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f65a876894d..298eb4c880d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5541,25 +5541,7 @@ in { }; }; - jdcal = buildPythonPackage rec { - version = "1.0"; - name = "jdcal-${version}"; - - src = pkgs.fetchFromGitHub { - owner = "phn"; - repo = "jdcal"; - rev = "v${version}"; - sha256 = "0jjgrrylraqzk3n97hay4gj00ky6vlvkfaapfgqlbcxyq30j24vq"; - }; - - meta = { - description = "A module containing functions for converting between Julian dates and calendar dates"; - homepage = "https://github.com/phn/jdcal"; - license = licenses.bsd2; - maintainers = with maintainers; [ lihop ]; - platforms = platforms.all; - }; - }; + jdcal = callPackage ../development/python-modules/jdcal { }; internetarchive = callPackage ../development/python-modules/internetarchive {}; |